themeOf method

Implementation

ObscureSuffixButtonTheme themeOf(BuildContext context) {
  final buttonTheme = FormTheme.of(context).obscureSuffixButtonTheme;

  return ObscureSuffixButtonTheme(
    trueIcon:
        trueIcon ?? buttonTheme.trueIcon ?? const Icon(Icons.visibility),
    falseIcon: falseIcon ??
        buttonTheme.falseIcon ??
        const Icon(Icons.visibility_off),
  );
}