getOthersInfo method

  1. @override
Future<OthersInfo> getOthersInfo()
override

/ 4.

Implementation

@override
Future<OthersInfo> getOthersInfo() async {
  final result = await methodChannel.invokeMethod<Map>('getOthersInfo');

  if (result == null) {
    throw Exception('Failed to get others info');
  }

  final map = Map<String, dynamic>.from(result);
  return OthersInfo.fromMap(map);
}