isReady method

  1. @override
  2. @mustCallSuper
Future<void> isReady()
inherited

checks if all asynchronous binds are ready to be used synchronously.

Implementation

@override
@mustCallSuper
Future<void> isReady() async {
  if (_mutableValue.isReadyFlag) return;
  _mutableValue.isReadyFlag = true;
  final asyncBindList = _binds.whereType<AsyncBindContract>().toList();
  for (var bind in asyncBindList) {
    final resolvedBind = await bind.convertToBind();
    _binds.insert(0, resolvedBind);
  }
}