setErrorStyle static method

void setErrorStyle({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
})

Implementation

static void setErrorStyle({Color? backgroundColor, ui.TextStyle? textStyle}) {
  RenderErrorBox.backgroundColor = backgroundColor ?? kBackgroundLight;
  RenderErrorBox.textStyle = textStyle ?? kErrorTextStyle;
}