BiDi<A, B> class abstract interface

Available extensions

Constructors

BiDi({required B forward(A a), required A backward(B b)})
factory

Properties

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

Methods

backward(B b) → A
forward(A a) → B
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

jsonObjectString BiDi<String, Map<String, dynamic>>
final
jsonString BiDi<String, dynamic>
final
listOfIntToUint8List BiDi<List<int>, Uint8List>
final

Static Methods

bidiCast<A, B>() BiDi<A, B>
bidiCastNarrow<A, B extends A>() BiDi<A, B>
bidiOpt<A, B>(BiDi<A, B> bidi) BiDiOpt<A, B>
compose<A, B, C>({required BiDi<A, B> aToB, required BiDi<B, C> bToC}) BiDi<A, C>
identity<T>() BiDi<T, T>
proto<M extends GeneratedMessage>(M create()) BiDi<Uint8List, M>
protobufEnumByIndex<P extends ProtobufEnum, E extends Enum>(List<P> pbValues, List<E> enumValues) BiDi<P, E>
protoIntList<M extends GeneratedMessage>(M create()) BiDi<List<int>, M>
protoJson<M extends GeneratedMessage>(M create()) BiDi<Map<String, dynamic>, M>