assertInitialised method
void
assertInitialised()
Asserts that the instance is initialized.
Throws an AssertionError if the instance is not initialized before calling this method.
Implementation
void assertInitialised() {
assert(
isInitialised,
'The instance must be initialized before calling this method.',
);
}