customData method

  1. @override
Future<Map<String, String>> customData()
override

Returns the previously set custom data.

Implementation

@override
Future<Map<String, String>> customData() async {
  Map<String, String>? rvalue;
  try {
    rvalue =
        await methodChannel.invokeMapMethod<String, String>('customData');
  } on PlatformException catch (e) {
    print('Cannot get custom data: $e');
  }
  return rvalue ?? <String, String>{};
}