Name class Null safety

A decorator used to specify the Discord name of Command arguments.

This overrides the default, which is to convert camelCase names to kebab-case.

Constructors

Name(String name)
Create a new instance to specify the name of an argument, like so: [...]
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name for this argument. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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