resolve method

  1. @override
TextStyle resolve(
  1. BuildContext context
)
override

Implementation

@override
TextStyle resolve(BuildContext context) {
  final themeValue = MixTheme.of(context).textStyles[this];
  assert(
    themeValue != null,
    'TextStyleToken $name is not defined in the theme',
  );

  final resolvedValue = themeValue is TextStyleResolver
      ? themeValue.resolve(context)
      : themeValue;

  return resolvedValue ?? const TextStyle();
}