getAll method

Future<List<Phone>> getAll()

Gets all blocked phone numbers.

Throws PlatformException with code "security_error" if API unavailable.

Implementation

Future<List<Phone>> getAll() async {
  final result = await _invoke<List>('blockedNumbers.getAll');
  return JsonHelpers.decodeList(result, Phone.fromJson);
}