call method

TextStyle call(
  1. String role
)

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

Implementation

TextStyle call(String role) {
  final style = tokens[role];
  if (style == null) {
    throw ArgumentError.value(
      role,
      'role',
      'Типографическая роль не найдена.',
    );
  }
  return style;
}