themeOf method

Implementation

ClearSuffixButtonTheme themeOf(BuildContext context) {
  final buttonTheme = FormTheme.of(context).clearSuffixButtonTheme;

  return ClearSuffixButtonTheme(
    visibleWithoutValue:
        visibleWithoutValue ?? buttonTheme.visibleWithoutValue ?? false,
    appearDuration:
        appearDuration ?? buttonTheme.appearDuration ?? const Duration(milliseconds: 300),
    icon: icon ?? buttonTheme.icon ?? const  Icon(Icons.clear),
  );
}