call method

Color call(
  1. String role
)

Возвращает semantic color по роли.

Implementation

Color call(String role) {
  final color = tokens[role];
  if (color == null) {
    throw ArgumentError.value(role, 'role', 'Semantic color не найден.');
  }
  return color;
}