ImmutableKind<T>.walkable constructor
- @literal
Constructs a kind for a class that implements Walkable.
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.walkable({
String? name,
String? jsonName,
required T blank,
Function? fromJson,
Object? Function(T object)? toJson,
Map<String, T> constantsByName,
}) = _WalkableImmutableKind<T>;