edgeAlert function Null safety

void edgeAlert(
  1. BuildContext context,
  2. {String title = '',
  3. String description = '',
  4. Color? backgroundColor,
  5. int duration = 1,
  6. Gravity gravity = Gravity.top,
  7. IconData? icon}
)

Implementation

void edgeAlert(
  BuildContext context, {
  String title = '',
  String description = '',
  Color? backgroundColor,
  int duration = 1,
  Gravity gravity = Gravity.top,
  IconData? icon,
}) {
  OverlayView.createView(
    context,
    title: title,
    description: description,
    duration: duration,
    gravity: gravity,
    backgroundColor: backgroundColor,
    icon: icon,
  );
}