getLabel method

String? getLabel(
  1. String key, {
  2. String? defaultValue,
})

Get route label

Implementation

String? getLabel(String key, {String? defaultValue}) {
  return labels[key] ?? defaultValue;
}