themeStyleOf method

RadioFieldTheme themeStyleOf(
  1. BuildContext context
)

Implementation

RadioFieldTheme themeStyleOf(BuildContext context) {
  final theme = Theme.of(context);
  final formTheme = FormTheme.of(context);
  final fieldTheme = formTheme.radioTheme;
  final resolver = FieldThemeResolver(theme, formTheme, fieldTheme);
  final radioTheme = fieldTheme.radioTheme ?? theme.radioTheme;

  return RadioFieldTheme(
    decorationTheme: resolver.decorationTheme,
    textStyle: textStyle ?? resolver.textStyle,
    textColor: textColor ?? resolver.textColor,
    radioTheme: radioTheme.copyWith(
      mouseCursor: mouseCursor,
      fillColor: fillColor,
      overlayColor: overlayColor,
      splashRadius: splashRadius,
    ),
    canDeselect: canDeselect ?? fieldTheme.canDeselect,
    canTapItemTile: canTapItemTile ?? fieldTheme.canTapItemTile,
  );
}