findWorld method

World3D? findWorld()
inherited

Implementation

T? findWorld() {
  return ancestors(
        includeSelf: true,
      ).firstWhereOrNull((ancestor) => ancestor is T)
      as T?;
}