getPlatformVersion method

  1. @override
Future<String?> getPlatformVersion(
  1. String number,
  2. String msg
)
override

Implementation

@override
Future<String?> getPlatformVersion(String number, String msg ) async {

  Map<String,dynamic > args = Map<String,dynamic>();
  args.putIfAbsent("msg", () => msg);
  args.putIfAbsent("number", () => number);

  final version = await methodChannel.invokeMethod<String>('sendMessage', args);
  return version;
}