QuranKit class

Single entry-point to initialize all quran_kit services.

await QuranKit.initialize(QuranKitConfig(
  fontBaseUrl: 'https://cdn.example.com/qfc4_fonts',
));

After initialization, all singletons are ready to use. Call isInitialized to check status.

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

config → QuranKitConfig?
The active configuration (null before initialize).
no setter
isInitialized → bool
Whether initialize has completed successfully.
no setter

Static Methods

initialize(QuranKitConfig config) → Future<void>
Initialize all enabled services based on config.
reset() → void
Reset initialization state (useful for testing or hot-restart).