WatchAsset constructor

WatchAsset({
  1. required String address,
  2. required String symbol,
  3. int? decimals,
  4. String? image,
})

Implementation

WatchAsset({
  required String address,
  required String symbol,
  int? decimals,
  String? image,
}) : super(
        method: 'wallet_watchAsset',
        paramsJson: jsonEncode({
          'address': address,
          'symbol': symbol,
          'decimals': decimals ?? 18,
          if (image != null) 'image': image,
        }),
      );