result/error library

Classes

BaseError
BaseError defines the Error interface, which can be used to implement custom error types.
Error
Error is the standard error class using a string as the underlaying type.

Functions

isError(dynamic v) bool
isError returns true is v is a type of error.
isErrorType<T extends BaseError>(dynamic v) bool
isErrorType returns true if v is of error type T.