GetEvent<T> constructor

const GetEvent<T>(
  1. T current, {
  2. String? name,
})

Creates a new GetEvent with the specified state value and optional name.

T The type of the state value. current The state value that was retrieved from the Hako container. name An optional identifier for the state value. Used when multiple state values of the same type need to be distinguished.

Implementation

const GetEvent(super.current, {super.name});