OverlayManagerInit class
The OverlayManagerInit
class is responsible for initializing the bot_toast
package and setting it up as the builder and navigator observer for the Flutter application.
To use this class, you need to import the OverlayManagerInit
class from the package:bot_toast/bot_toast.dart
file.
This class extends the BotToast
class and provides the necessary setup for the bot_toast
package.
Example
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
// Initialize the overlay manager
OverlayManagerInit.builder = BotToastInit();
OverlayManagerInit.navigatorObserver = BotToastNavigatorObserver();
// Run the Flutter application
MaterialApp(
builder: OverlayManagerInit.builder,
navigatorObservers: [OverlayManagerInit.navigatorObserver])
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- builder ↔ Widget Function(BuildContext, Widget?)?
-
The builder for the
MaterialApp
widget.getter/setter pair -
The navigator observer for the
MaterialApp
widget.getter/setter pair