emptyParameterizedCallback top-level property
ParameterizedVoidCallback<Object?>
get
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) {};