customData method

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

Returns the previously set custom data.

Implementation

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