TinkStateEvent<S> constructor

TinkStateEvent<S>(
  1. String name,
  2. S value,
  3. TinkStateEventType type,
  4. bool asProvider, {
  5. Ulid? id,
  6. Actor? actor,
})

Implementation

factory TinkStateEvent(
    String name, S value, TinkStateEventType type, bool asProvider,
    {Ulid? id, Actor? actor}) {
  return TinkStateEvent._(
    id ??= Ulid(),
    name,
    value,
    actor ??= unknown,
    type,
    asProvider,
  );
}