init
This commit is contained in:
parent
9f81d2227e
commit
40f758eb63
@ -117,14 +117,14 @@ class MessageManager {
|
|||||||
|
|
||||||
Future<Message> createTextAtMessage({
|
Future<Message> createTextAtMessage({
|
||||||
required String text,
|
required String text,
|
||||||
required List<String> atUserList,
|
required List<String> atUidList,
|
||||||
}) {
|
}) {
|
||||||
return _channel
|
return _channel
|
||||||
.invokeMethod(
|
.invokeMethod(
|
||||||
'createTextAtMessage',
|
'createTextAtMessage',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
'text': text,
|
'text': text,
|
||||||
'atUserList': atUserList,
|
'atUserList': atUidList,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then((value) => _toObj(value));
|
.then((value) => _toObj(value));
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
/* const MethodChannel channel = MethodChannel('flutter_openim_sdk');
|
/* const MethodChannel channel = MethodChannel('flutter_openim_sdk');
|
||||||
|
|
||||||
@ -35,8 +37,8 @@ void main() {
|
|||||||
// print('====$match ${m.start} ${m.end}');
|
// print('====$match ${m.start} ${m.end}');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
DateTime now = DateTime.now();
|
// DateTime now = DateTime.now();
|
||||||
print('${now.millisecond}');
|
// print('${now.millisecond}');
|
||||||
print('${now.microsecondsSinceEpoch}');
|
// print('${now.microsecondsSinceEpoch}');
|
||||||
print('${now.millisecondsSinceEpoch}');
|
// print('${now.millisecondsSinceEpoch}');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user