RichTextBuilder.ofTextTheme constructor

RichTextBuilder.ofTextTheme({
  1. required BuildContext context,
  2. required TextTheme textTheme,
  3. Color? lightColor,
  4. TextStyle? start,
})

Implementation

RichTextBuilder.ofTextTheme({required this.context, required this.textTheme, Color? lightColor, TextStyle? start})
    : lightStyle2 = textTheme.bodyText2!.copyWith(color: lightColor ?? _lightColor),
      lightStyle1 = textTheme.bodyText1!.copyWith(color: lightColor ?? _lightColor),
      _temp = start;