world property

T world

Reference to the World instance that this component belongs to.

Implementation

T get world => _world ??= _findWorldAndCheck();
  1. @visibleForTesting
void world=(T? value)

Allows you to set the world instance explicitly. This may be useful in tests.

Implementation

@visibleForTesting
set world(T? value) => _world = value;