ReownAppKitModalNetworkInfo class sealed

Available extensions
Annotations
  • @freezed

Constructors

ReownAppKitModalNetworkInfo.new({required String name, required String chainId, required String currency, required String rpcUrl, required String explorerUrl, @Default(<String>[]) List<String> extraRpcUrls, @Default(false) bool isTestNetwork, String? chainIcon})
const
factory
ReownAppKitModalNetworkInfo.fromJson(Map<String, dynamic> json)
factory

Properties

chainHexId String

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoExtension extension

no setter
chainIcon String?
no setterinherited
chainId String
no setterinherited
copyWith → $ReownAppKitModalNetworkInfoCopyWith<ReownAppKitModalNetworkInfo>
Create a copy of ReownAppKitModalNetworkInfo with the given fields replaced by the non-null parameter values.
no setterinherited
currency String
no setterinherited
explorerUrl String
no setterinherited
extraRpcUrls List<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isTestNetwork bool
no setterinherited
name String
no setterinherited
rpcUrl String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ReownAppKitModalNetworkInfo value)) → TResult

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ReownAppKitModalNetworkInfo value)?) → TResult?

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ReownAppKitModalNetworkInfo value)?, {required TResult orElse()}) → TResult

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String name, String chainId, String currency, String rpcUrl, String explorerUrl, List<String> extraRpcUrls, bool isTestNetwork, String? chainIcon)?, {required TResult orElse()}) → TResult

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ReownAppKitModalNetworkInfo to a JSON map.
inherited
toRawJson({int? decimals}) Map<String, dynamic>

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoExtension extension

toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String name, String chainId, String currency, String rpcUrl, String explorerUrl, List<String> extraRpcUrls, bool isTestNetwork, String? chainIcon)) → TResult

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String name, String chainId, String currency, String rpcUrl, String explorerUrl, List<String> extraRpcUrls, bool isTestNetwork, String? chainIcon)?) → TResult?

Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited