init method

void init({
  1. ComToastTheme? theme,
})

Implementation

void init({ComToastTheme? theme}) {
  theme?.toast.base?.validate();
  theme?.toast.normal?.validate();
  theme?.toast.success?.validate();
  theme?.toast.error?.validate();
  theme?.toast.warning?.validate();
  theme?.toast.info?.validate();
  theme?.banner.base?.validate();
  theme?.banner.normal?.validate();
  theme?.banner.success?.validate();
  theme?.banner.error?.validate();
  theme?.banner.warning?.validate();
  theme?.banner.info?.validate();
  theme?.loading?.validate();
  _theme = theme;
}