resolveTextTheme method

TextTheme resolveTextTheme(
  1. TextDirection direction,
  2. TextTheme base
)

Returns the appropriate TextTheme for the current text direction.

Call this inside Theme.light / Theme.dark to wire up the theme, or inside a widget to get a direction-aware text theme.

Implementation

TextTheme resolveTextTheme(TextDirection direction, TextTheme base) =>
    _fontFor(direction).applyToTheme(base);