isVisibleInCamera method

  1. @override
bool isVisibleInCamera()
override

Method that checks if this component is visible on the screen

Implementation

@override
// ignore: must_call_super
bool isVisibleInCamera() {
  return hasGameRef ? gameRef.camera.canSeeWithMargin(this) : false;
}