AFCommandError class

If thrown within an AFib command, shows the usage for the command followed by the error message.

You do not need to provide the usage, AFib will provide it from the command's standard usage.

Implemented types

Constructors

AFCommandError({required String error, String? usage})

Properties

error String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited