Input<T> constructor

Input<T>({
  1. required T seedValue,
  2. required String semantics,
  3. bool sync = true,
  4. bool isBehavior = true,
  5. bool printLog = true,
  6. bool acceptEmpty = true,
  7. bool isDistinct = false,
  8. T onReset()?,
  9. bool isSame(
    1. T,
    2. T
    )?,
  10. PersistConfig<T>? persistConfig,
})

Implementation

Input({
  required super.seedValue,
  required super.semantics,
  super.sync,
  super.isBehavior,
  super.printLog,
  bool acceptEmpty = true,
  bool isDistinct = false,
  super.onReset,
  bool Function(T, T)? isSame,
  super.persistConfig,
}) {
  _acceptEmpty = acceptEmpty;
  _isDistinct = isDistinct;
  _isSame = isSame ?? (a, b) => a == b;
}