getHelperTextStyle method
Implementation
TextStyle getHelperTextStyle(BuildContext context) {
if (field.error?.isNotEmpty == true) {
return TextStyle(
color: Theme.of(context).colorScheme.error,
);
}
if (field.warning?.isNotEmpty == true) {
return TextStyle(
color: Theme.of(context).colorScheme.surface,
);
}
if (field.information?.isNotEmpty == true) {
return TextStyle(
color: Theme.of(context).primaryColor,
);
}
return const TextStyle();
}