startService_methodChannel method
Future<String>
startService_methodChannel({
- required String entryPointName,
- required AlarmModel model,
Implementation
Future<String> startService_methodChannel({
required String entryPointName,
required AlarmModel model,
}) async {
final result = await methodChannel.invokeMethod<String>(
"startService",
<String, dynamic>{
"entryPointName": entryPointName,
"AlarmModel": model.toJson(),
},
);
if (result == null) return "return null wrong!!";
return result.toString();
}