getSampleWallets static method
Implementation
static List<W3MWalletInfo> getSampleWallets(String platform) {
final wallets = nativeData.entries.map((entry) {
final packageId = (entry.value['android']! as NativeAppData).schema;
final schema = (entry.value['ios']! as NativeAppData).schema;
final platforms = entry.value['platform']! as List<String>;
final name = entry.value['name']! as String;
final icon =
'https://thegraph.academy/wp-content/uploads/2021/04/WalletConnect-logo.png';
if (platforms.contains(platform)) {
return W3MWalletInfo(
listing: Listing.fromJson({
'id': entry.key,
'name': name,
'homepage': 'https://walletconnect.com',
'image_id': icon,
'order': 10,
'mobile_link': schema,
'app_store':
'https://apps.apple.com/app/apple-store/id${entry.key}',
'play_store':
'https://play.google.com/store/apps/details?id=$packageId',
}),
installed: false,
recent: false,
);
}
}).toList();
return wallets.whereType<W3MWalletInfo>().toList();
}