Event constructor

Event(
  1. String name, {
  2. String? description,
  3. String? fullName,
  4. bool? isCommand,
  5. Map<String, String> parameters = const {},
})

Implementation

Event(
  this.name, {
  this.description,
  this.fullName,
  this.isCommand,
  this.parameters = const {},
}) {
  if (name.isEmpty) {
    throw ArgumentError('The name must not be empty');
  }
}