execute method

  1. @override
Future<String> execute(
  1. String action, {
  2. double? timeout,
})
override

Implementation

@override
Future<String> execute(String action, {double? timeout}) async {
  Map<String, dynamic> opts = {
    'action': action,
  };

  if (timeout != null) {
    opts['timeout'] = timeout;
  }

  return await methodChannel.invokeMethod('execute', opts);
}