diff --git a/example/lib/screens/export_import/components/path_picker.dart b/example/lib/screens/export_import/components/path_picker.dart index a703eb5c..2ab84817 100644 --- a/example/lib/screens/export_import/components/path_picker.dart +++ b/example/lib/screens/export_import/components/path_picker.dart @@ -71,7 +71,7 @@ class PathPicker extends StatelessWidget { color: Theme.of(context) .buttonTheme .colorScheme! - .primaryFixedDim, + .primaryFixed, ), ), ), diff --git a/lib/src/backend/errors/basic.dart b/lib/src/backend/errors/basic.dart index 4f6b3ab4..210f416f 100644 --- a/lib/src/backend/errors/basic.dart +++ b/lib/src/backend/errors/basic.dart @@ -28,6 +28,7 @@ final class RootAlreadyInitialised extends FMTCBackendError { final class StoreNotExists extends FMTCBackendError { StoreNotExists({required this.storeName}); + /// The referenced store name final String storeName; @override diff --git a/lib/src/backend/impls/objectbox/backend/errors.dart b/lib/src/backend/impls/objectbox/backend/errors.dart index 8b41245e..aceecbf7 100644 --- a/lib/src/backend/impls/objectbox/backend/errors.dart +++ b/lib/src/backend/impls/objectbox/backend/errors.dart @@ -13,12 +13,10 @@ base class FMTCObjectBoxBackendError extends FMTCBackendError {} /// Indicates that an export failed because the specified output path directory /// was the same as the root directory final class ExportInRootDirectoryForbidden extends FMTCObjectBoxBackendError { - ExportInRootDirectoryForbidden({required this.directory}); - - final String directory; + ExportInRootDirectoryForbidden(); @override String toString() => 'ExportInRootDirectoryForbidden: It is forbidden to export stores to the ' - 'same directory ($directory) as the `rootDirectory`'; + 'same directory as the `rootDirectory`'; } diff --git a/lib/src/backend/impls/objectbox/backend/internal_worker.dart b/lib/src/backend/impls/objectbox/backend/internal_worker.dart index 952b5247..aff80041 100644 --- a/lib/src/backend/impls/objectbox/backend/internal_worker.dart +++ b/lib/src/backend/impls/objectbox/backend/internal_worker.dart @@ -863,7 +863,7 @@ Future _worker( final outputDir = path.dirname(outputPath); if (outputDir == input.rootDirectory.absolute.path) { - throw ExportInRootDirectoryForbidden(directory: outputDir); + throw ExportInRootDirectoryForbidden(); } Directory(outputDir).createSync(recursive: true);