Nok constructor
const
Nok({
- String? error,
Does not perform any validation.
error
the message that will always be returned; defaults to 'Nok error'.
Implementation
const Nok({String? error}) : _error = error ?? 'Nok error';