asyncInit method

Future<LiveSource<T>> asyncInit({
  1. required Future<T> loadData(),
})

Implementation

Future<LiveSource<T>> asyncInit({required Future<T> Function() loadData}) async {
  value = await loadData();
  return this;
}