Command class

The class that contains the information about a command

Annotations
  • @JsonSerializable()

Constructors

Command({required String name, required String description, required String args})
Constructor used for json serialization
Command.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

args String
The arguments of the command
final
description String
The description explaining the command
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the command
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize to json
toString() String
A string representation of this object.
inherited

Operators

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