core/helper/types library
Common function signatures used across the Minix package.
Typedefs
-
EqualityFunction<
T> = bool Function(T a, T b) - A function that compares two values for equality.
- ErrorCallback = void Function(Object error, StackTrace stackTrace)
- A function that takes an error and stack trace for error handling.
-
Validator<
T> = String? Function(T value) - A function that validates a value and returns an error message or null.
- VoidCallback = void Function()
- A function that takes no arguments and returns no value.