onLoadCache property

  1. @internal
  2. @nonVirtual
Future<void>? onLoadCache
getter/setter pairinherited

Since onLoad only should run once throughout a the lifetime of the implementing class, it is cached so that it can be reused when the parent component/game/widget changes.

Implementation

@internal
@nonVirtual
late Future<void>? onLoadCache = onLoad();