getContactDetail method

  1. @Deprecated('')
Future<List<ContactDetail>> getContactDetail(
  1. String token
)

Implementation

@Deprecated('')
Future<List<ContactDetail>> getContactDetail(String token) async {
  final String? response = await _channel.invokeMethod<String>(
    'getContactDetail',
    token,
  );
  if (response == null) {
    throw Exception();
  }
  final List<dynamic> items = json.decode(response);
  return List<ContactDetail>.from(
    items.map(
      (dynamic i) => ContactDetail.fromMap(i),
    ),
  );
}