mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
10 lines
301 B
Dart
10 lines
301 B
Dart
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
import '../veilid_support/veilid_support.dart';
|
|
|
|
part 'veilid_instance.g.dart';
|
|
|
|
// Expose the Veilid instance as a FutureProvider
|
|
@riverpod
|
|
FutureOr<Veilid> veilidInstance(VeilidInstanceRef ref) async =>
|
|
await eventualVeilid.future;
|