Communicate Between Flutter and Native Android and iOS Code Using Platform Channel | by Sumit Ghosh | Feb, 2022

Runner > Runner > AppDelegate
platformChannel.invokeMethod('getDeviceModel',
"flutterAppVersion": "0.0.1", "developerName": "XYZ");
end result( ------ )
1. Future<T?> invokeMethod<T>(String technique, [ dynamic arguments ])
2. Future<Map<Ok, V>?> invokeMapMethod<Ok, V>(String technique, [ dynamic arguments ])
3. Future<Listing<T>?> invokeListMethod<T>(String technique, [ dynamic arguments ])

More Posts