emptyParameterizedCallback top-level property Null safety

ParameterizedVoidCallback<Object?> emptyParameterizedCallback

An empty parameterized function that can be used in assigning default values for ParameterizedCallback.

class MyClass {
  final ParameterizedCallback initialize;
  MyClass([ParameterizedCallback? initialize])
      : initialize = initialize ?? emptyParameterizedCallback;
}

Implementation

///   MyClass([ParameterizedCallback? initialize])
///       : initialize = initialize ?? emptyParameterizedCallback;
/// }
/// ```
///
ParameterizedVoidCallback get emptyParameterizedCallback => (input) {};