TetaCMS class
TetaCMS instance.
It must be initialized before used, otherwise an error is thrown.
await TetaCMS.initialize(...)
Use it:
final instance = TetaCMS.instance;
Properties
- analytics ↔ TetaAnalytics
-
The TetaStore instance
getter/setter pair
- auth ↔ TetaAuth
-
The TetaAuth instance
getter/setter pair
- client ↔ TetaClient
-
The TetaCMS client for this instance
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpRequest ↔ TetaHttpRequest
-
Http Request
getter/setter pair
- isInitialized → bool
-
Returns if the instance is initialized or not
no setter
- realtime ↔ TetaRealtime
-
The TetaRealtime instance
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store ↔ TetaShop
-
The TetaStore instance
getter/setter pair
- utils ↔ TetaCMSUtils
-
Utils
getter/setter pair
Methods
-
dispose(
) → void - Dispose the instance to free up resources.
-
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
-
initialize(
{required int prjId, required String token, bool? debug}) → Future< TetaCMS> - Initialize the current TetaCMS instance
-
log(
String msg) → void - Print only in debug mode
-
printError(
String text) → void - Print an error message only in debug mode
-
printWarning(
String text) → void - Print a warning message only in debug mode