checkImageLoaded method
Checks if image
is already loaded.
- If the
image
is not loaded it will throw a StateError.
Implementation
void checkImageLoaded(PCanvasImage image) {
if (!image.isLoaded) {
throw StateError("Can't draw NOT loaded image: $image");
}
}