Command constructor Null safety

Command(
  1. String name,
  2. Schema? schema,
  3. dynamic func
)

Creates a new command object and assigns it's parameters.

  • name the command name.
  • schema the schema to validate command arguments.
  • func the function to be executed by this command.