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}) -
constfactory
-
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
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ReownAppKitModalNetworkInfo value)?) → TResult? -
Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ReownAppKitModalNetworkInfo value)?, {required TResult orElse()}) → TResult -
Available on ReownAppKitModalNetworkInfo, provided by the ReownAppKitModalNetworkInfoPatterns extension
A variant ofmap
that fallback to returningorElse
. -
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 ofwhen
that fallback to anorElse
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
Aswitch
-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 ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited