mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-16 11:34:24 -05: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;
|