addHud method

  1. @override
FutureOr<void> addHud(
  1. Component component
)
override

Used to add hud component in the game.

Implementation

@override
FutureOr<void> addHud(Component component) {
  return camera.viewport.add(component);
}