fullName property

String get fullName

Full name of the command with all the parent commands, for example code check.

Implementation

String get fullName {
  final parts = <String>[name];

  var parent = this.parent;
  while (parent != null) {
    parts.insert(0, parent.name);
    parent = parent.parent;
  }

  return parts.join(' ');
}