init static method

void init([
  1. Color? bgColor,
  2. Color? textColor,
  3. double? fontSize
])

Implementation

static void init([Color? bgColor, Color? textColor, double? fontSize]) {
  toastBgColor = bgColor ?? toastBgColor;
  textColor = textColor ?? toastTextColor;
  toastFontSize = fontSize ?? toastFontSize;
}