ValidatorApy class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- ValidatorApy({required String address, required double apy})
-
constfactory
-
ValidatorApy.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
map<
TResult extends Object?> (TResult $default(_ValidatorApy value)) → TResult -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ValidatorApy value)?) → TResult? -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ValidatorApy value)?, {required TResult orElse()}) → TResult -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String address, double apy)?, {required TResult orElse()}) → TResult -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ValidatorApy to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String address, double apy)) → TResult -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String address, double apy)?) → TResult? -
Available on ValidatorApy, provided by the ValidatorApyPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited