Discriminator<T> class abstract base

Available extensions

Constructors

Discriminator.new(Object? value, Decodable<T> resolve())
factory
Discriminator.base(Object? value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object?
final

Methods

canDecodable(Decoder decoder, String? currentKey, String? currentValue) Discriminator?

Available on Discriminator<T>, provided by the DiscriminatorExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve<T>() Decodable<T>

Available on Discriminator, provided by the DiscriminatorApply extension

resolve1<T, A>(Decodable<A>? d1) Decodable<T>

Available on Discriminator, provided by the DiscriminatorApply extension

resolve2<T, A, B>(Decodable<A>? d1, Decodable<B>? d2) Decodable<T>

Available on Discriminator, provided by the DiscriminatorApply extension

toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

arg1<T>(Object? value, Decodable<T> resolve<A>(Decodable<A>? d1)) Discriminator<T>
arg1Bounded<T, A>(Object? value, Function resolve) Discriminator<T>
arg2<T>(Object? value, Decodable<T> resolve<A, B>(Decodable<A>? d1, Decodable<B>? d2)) Discriminator<T>
arg2Bounded<T, A, B>(Object? value, Function resolve) Discriminator<T>
chain<T>(List<Discriminator<T>> discriminators, Decodable<T> resolve(Discriminator<T> d)) List<Discriminator<T>>
chain1<T>(List<Discriminator<T>> discriminators, Decodable<T> resolve<A>(Discriminator<T> d, Decodable<A>? d1)) List<Discriminator<T>>
chain2<T>(List<Discriminator<T>> discriminators, Decodable<T> resolve<A, B>(Discriminator<T> d, Decodable<A>? d1, Decodable<B>? d2)) List<Discriminator<T>>