YPlayerInitializer class
A utility class to ensure proper initialization of the YPlayer dependencies.
This class provides a mechanism to initialize Flutter's widget binding and the MediaKit library, which are required for proper functioning of the YPlayer. It ensures that these initializations occur only once, even if called multiple times.
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 Methods
-
ensureInitialized(
) → void - Ensures that the necessary initializations for YPlayer are performed.