ImmutableKind<T> constructor
- @literal
Constructs a kind for a class that has a constant constructor.
Parameter blank
is the default value. It should be a compile-time
constant or at least an unmodifiable object.
Parameter walk
is a function that maps an instance to a new instance
using a Mapper.
Implementation
@literal
const factory ImmutableKind({
String? name,
String? jsonName,
required T blank,
required WalkFunction<T> walk,
Function? fromJson,
Object? Function(T object)? toJson,
Map<String, T>? constantsByName,
}) = _ImmutableKind<T>;