addOverlay function Null safety

  1. @Deprecated('Use `Asuka.addOverlay` instead')
void addOverlay(
  1. OverlayEntry entry,
  2. {OverlayEntry? below,
  3. OverlayEntry? above,
  4. bool callback = false}
)

Insert the given entry into the overlay.

If below is non-null, the entry is inserted just below below. If above is non-null, the entry is inserted just above above. Otherwise, the entry is inserted on top.

It is an error to specify both above and below.

Implementation

@Deprecated('Use `Asuka.addOverlay` instead')
void addOverlay(OverlayEntry entry,
    {OverlayEntry? below, OverlayEntry? above, bool callback = false}) {
  Asuka.addOverlay(entry, above: above, below: below, callback: callback);
}