getDeviceAccounts method

  1. @override
Future<List<Account>> getDeviceAccounts()
override

/ 5.

Implementation

@override
Future<List<Account>> getDeviceAccounts() async {
  final List<dynamic>? accounts = await methodChannel
      .invokeMethod<List<dynamic>>('getDeviceAccounts');
  return accounts
          ?.map((e) => Account.fromMap(Map<String, dynamic>.from(e)))
          .toList() ??
      [];
}