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