Undo renaming mistake
MODIFY
packages/isar_inspector/lib/connected_layout.dart
packages/isar_inspector/lib/connected_layout.dart
@@ -17,7 +17,7 @@ class ConnectedLayout extends ConsumerStatefulWidget {
class _ConnectedLayoutState extends ConsumerState<ConnectedLayout> {
@override
void initState() {
- final instance = ref.read(selectedInstancePod).value1!;
+ final instance = ref.read(selectedInstancePod).value!;
ref.read(isarConnectPod.notifier).watchInstance(instance);
super.initState();
}

MODIFY
packages/isar_inspector/lib/filter_field.dart
packages/isar_inspector/lib/filter_field.dart
@@ -51,7 +51,7 @@ class _FilterFieldState extends ConsumerState<FilterField> {
const SizedBox(width: 20),
ElevatedButton(
onPressed: () {
- final selectedCollection = ref.read(selectedCollectionPod).value1!;
+ final selectedCollection = ref.read(selectedCollectionPod).value1;
final filter = _parseFilter(selectedCollection);
ref.read(queryFilterPod.state).state = filter;
ref.read(queryPagePod.state).state = 0;
@@ -61,10 +61,10 @@ class _FilterFieldState extends ConsumerState<FilterField> {
const SizedBox(width: 20),
ElevatedButton(
onPressed: () {
- final selectedCollection = ref.read(selectedCollectionPod).value1!;
+ final selectedCollection = ref.read(selectedCollectionPod).value1;
final filter = _parseFilter(selectedCollection);
final query = ConnectQuery(
- instance: ref.read(selectedInstancePod).value1!,
+ instance: ref.read(selectedInstancePod).value1,
collection: selectedCollection.name,
filter: filter,
);

MODIFY
packages/isar_inspector/lib/instance_selector.dart
packages/isar_inspector/lib/instance_selector.dart
@@ -40,8 +40,8 @@ class _InstanceSelectorState extends ConsumerState<InstanceSelector>
@override
Widget build(BuildContext context) {
- final instances = ref.watch(instancesPod).value1!;
- final selectedInstance = ref.watch(selectedInstancePod).value1!;
+ final instances = ref.watch(instancesPod).value!;
+ final selectedInstance = ref.watch(selectedInstancePod).value!;
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,

MODIFY
packages/isar_inspector/lib/query_parser.dart
packages/isar_inspector/lib/query_parser.dart
@@ -58,7 +58,7 @@ class QueryParser {
case '==':
final filter = FilterCondition.equalTo(
property: propertyName,
- value1: value,
+ value: value,
);
if (cmp == '!=') {
return FilterGroup.not(filter);
@@ -69,14 +69,14 @@ class QueryParser {
case '>=':
return FilterCondition.greaterThan(
property: propertyName,
- value1: value,
+ value: value,
include: cmp == '>=',
);
case '<':
case '<=':
return FilterCondition.lessThan(
property: propertyName,
- value1: value,
+ value: value,
include: cmp == '<=',
);
case 'matches':
@@ -94,7 +94,7 @@ class QueryParser {
if (result.isFailure) {
throw IsarError(result.message);
}
- return result.value1 as FilterOperation;
+ return result.value as FilterOperation;
}
}

MODIFY
packages/isar_inspector/lib/query_table.dart
packages/isar_inspector/lib/query_table.dart
@@ -18,8 +18,8 @@ class QueryTable extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
- final collection = ref.watch(selectedCollectionPod).value1!;
- final objects = ref.watch(queryResultsPod).value1?.objects ?? [];
+ final collection = ref.watch(selectedCollectionPod).value!;
+ final objects = ref.watch(queryResultsPod).value?.objects ?? [];
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
@@ -191,11 +191,11 @@ class TableRow extends ConsumerWidget {
}
final query = ConnectQuery(
- instance: ref.read(selectedInstancePod).value1!,
+ instance: ref.read(selectedInstancePod).value!,
collection: collection.name,
filter: FilterCondition.equalTo(
property: collection.idName,
- value1: int.parse(object.getValue(collection.idName)),
+ value: int.parse(object.getValue(collection.idName)),
),
);
ref.read(isarConnectPod.notifier).removeQuery(query);

MODIFY
packages/isar_inspector/lib/state/isar_connect_state_notifier.dart
packages/isar_inspector/lib/state/isar_connect_state_notifier.dart
@@ -97,7 +97,7 @@ class IsarConnectStateNotifier
Duration? timeout = kNormalTimeout,
Map<String, dynamic>? args,
}) async {
- final connection = state.value1!;
+ final connection = state.value!;
var responseFuture = connection.vmService.callServiceExtension(
action.method,
isolateId: connection.isolateId,
@@ -164,7 +164,7 @@ class IsarConnectStateNotifier
}
Future<void> disconnect() async {
- await state.value1?.vmService.dispose();
+ await state.value?.vmService.dispose();
}
@override

Undo renaming mistake