getContextualInfo method

  1. @override
Future<Map<Object?, Object?>?> getContextualInfo()
override

Fetches the contextual information.

This method uses a method channel to invoke the getContextualInfo method on the native platform and returns the result.

Implementation

@override
Future<Map<Object?, Object?>?> getContextualInfo() async {
  final device = await methodChannel
      .invokeMethod<Map<Object?, Object?>?>('getContextualInfo');
  return device;
}