CommandSync<TParam, TResult> constructor

CommandSync<TParam, TResult>(
  1. TResult func(
    1. TParam
    )?,
  2. TResult funcNoParam()?,
  3. TResult initialValue,
  4. ValueListenable<bool>? restriction,
  5. bool includeLastResultInCommandResults,
  6. bool noReturnValue,
  7. bool? catchAlways,
  8. String? debugName,
  9. bool noParamValue,
)

Implementation

CommandSync(
  TResult Function(TParam)? func,
  TResult Function()? funcNoParam,
  TResult initialValue,
  ValueListenable<bool>? restriction,
  bool includeLastResultInCommandResults,
  bool noReturnValue,
  bool? catchAlways,
  String? debugName,
  bool noParamValue,
)   : _func = func,
      _funcNoParam = funcNoParam,
      super(
          initialValue,
          restriction,
          includeLastResultInCommandResults,
          noReturnValue,
          catchAlways ?? Command.catchAlwaysDefault,
          debugName,
          noParamValue);