getContactWindow method

Future<List<ContactWindow>> getContactWindow([
  1. String token = TOKEN_A
])

Implementation

Future<List<ContactWindow>> getContactWindow([
  String token = TOKEN_A,
]) async {
  final String? response = await _channel.invokeMethod<String>(
    'getContactWindow',
    token,
  );
  if (response == null) {
    throw Exception();
  }
  final List<dynamic> items = json.decode(response);
  return List<ContactWindow>.from(
    items.map(
      (dynamic i) => ContactWindow.fromMap(i),
    ),
  );
}