Command class

Constructors

Command({required String args, DateTime? createdAt, required String description, required String name, required String set_, DateTime? updatedAt})
Returns a new Command instance.

Properties

args String
Arguments help text, shown in commands auto-completion
getter/setter pair
createdAt DateTime?
Date/time of creation
getter/setter pair
description String
Description, shown in commands auto-completion
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
name String
Unique command name
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
set_ String
Set name used for grouping commands
getter/setter pair
updatedAt DateTime?
Date/time of the last update
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) Command?
Returns a new Command instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<Command>
mapFromJson(dynamic json) Map<String, Command>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<Command>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.