veilidchat/lib/providers/veilid_instance.dart
Christien Rioux c35056f687 dht work
2023-08-01 00:39:50 -04:00

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;