@@ -31,10 +31,18 @@ part 'internal_workers/thread_safe.dart';
31
31
part 'errors.dart' ;
32
32
part 'internal.dart' ;
33
33
34
+ /// {@template fmtc.backend.objectbox}
34
35
/// Implementation of [FMTCBackend] that uses ObjectBox as the storage database
36
+ ///
37
+ /// On web, this redirects to a no-op implementation that throws
38
+ /// [UnsupportedError] s when attempting to use [initialise] or [uninitialise] ,
39
+ /// and [RootUnavailable] when trying to use any other method.
40
+ /// {@endtemplate}
35
41
final class FMTCObjectBoxBackend implements FMTCBackend {
36
42
/// {@macro fmtc.backend.initialise}
37
43
///
44
+ /// {@template fmtc.backend.objectbox.initialise}
45
+ ///
38
46
/// ---
39
47
///
40
48
/// [maxDatabaseSize] is the maximum size the database file can grow
@@ -50,6 +58,7 @@ final class FMTCObjectBoxBackend implements FMTCBackend {
50
58
/// thread.
51
59
///
52
60
/// Avoid using [useInMemoryDatabase] outside of testing purposes.
61
+ /// {@endtemplate}
53
62
@override
54
63
Future <void > initialise ({
55
64
String ? rootDirectory,
@@ -68,11 +77,14 @@ final class FMTCObjectBoxBackend implements FMTCBackend {
68
77
69
78
/// {@macro fmtc.backend.uninitialise}
70
79
///
80
+ /// {@template fmtc.backend.objectbox.uninitialise}
81
+ ///
71
82
/// If [immediate] is `true` , any operations currently underway will be lost,
72
83
/// as the worker will be killed as quickly as possible (not necessarily
73
84
/// instantly).
74
85
/// If `false` , all operations currently underway will be allowed to complete,
75
86
/// but any operations started after this method call will be lost.
87
+ /// {@endtemplate}
76
88
@override
77
89
Future <void > uninitialise ({
78
90
bool deleteRoot = false ,
0 commit comments