mounted property
Future<void>
get
mounted
A future that will complete once the component is mounted on its parent
Implementation
Future<void> get mounted {
if (isMounted) {
return Future.value();
}
_mountCompleter ??= Completer<void>();
return _mountCompleter!.future;
}