all static method

Returns all cryptography providers in Android.

Implementation

static Future<List<AndroidCryptoProvider>> all() async {
  final result = await _methodChannel.invokeMethod(
    'androidCryptoProviders',
  ) as List;
  return result.map((e) {
    e as Map;
    return AndroidCryptoProvider(
      name: e['name'],
      className: e['className'],
      version: e['version'],
      services: (e['services'] as List).map((e) {
        e as Map;
        return AndroidCryptoService(
          type: e['type'],
          name: e['name'],
        );
      }).toList(),
    );
  }).toList();
}