Nok constructor

const Nok({
  1. 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';