loaded property

Future<void> get loaded

A future that will complete once this component has finished loading.

Implementation

Future<void> get loaded {
  if (isLoaded) {
    return Future.value();
  }

  _loadCompleter ??= Completer<void>();

  return _loadCompleter!.future;
}