onRemove method
Called when the game is about to be removed from the Flutter widget tree, but before it is actually removed.
Implementation
@override
void onRemove() {
super.onRemove();
Component.staticGameInstance = null;
}
Called when the game is about to be removed from the Flutter widget tree, but before it is actually removed.
@override
void onRemove() {
super.onRemove();
Component.staticGameInstance = null;
}