getToastBackgroundGradient static method

Gradient getToastBackgroundGradient(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static Gradient getToastBackgroundGradient(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return override?.toastBackgroundGradient ??
      style?.toastBackgroundGradient ??
      getStyleByType(UpConfig.of(context).theme, colorType)
          .toastBackgroundGradient ??
      const LinearGradient(colors: [Colors.red, Colors.blue]);
}