buildMaterialHelperOrErrorText method

Widget? buildMaterialHelperOrErrorText(
  1. BuildContext context,
  2. String? error
)

Implementation

Widget? buildMaterialHelperOrErrorText(BuildContext context, String? error) {
  if (error != null) {
    return buildMaterialErrorText(context, error);
  }
  return buildMaterialHelperText(context);
}