ImmutableKind<T>.walkable constructor

  1. @literal
const ImmutableKind<T>.walkable({
  1. String? name,
  2. String? jsonName,
  3. required T blank,
  4. Function? fromJson,
  5. Object? toJson(
    1. T object
    )?,
  6. Map<String, T> constantsByName,
})

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>;