TinkStateEvent<S>.error constructor

TinkStateEvent<S>.error(
  1. S value,
  2. TinkStateEventType type, {
  3. Ulid? id,
  4. Actor? actor,
})

Implementation

factory TinkStateEvent.error(S value, TinkStateEventType type,
    {Ulid? id, Actor? actor}) {
  return TinkStateEvent._(
      id ??= Ulid(), 'error', value, actor ??= unknown, type, false);
}