LxVar<T> constructor

LxVar<T>(
  1. T initial, {
  2. void onListen()?,
  3. void onCancel()?,
  4. String? name,
  5. bool isSensitive = false,
  6. bool equals(
    1. T previous,
    2. T current
    )?,
})

Creates a reactive variable with an initial value.

Implementation

LxVar(super.initial,
    {super.onListen,
    super.onCancel,
    super.name,
    super.isSensitive,
    super.equals});