@@ -653,10 +653,10 @@ base mixin DartToolingDaemonSupport
653
653
'figure out how to find the widget instead of just guessing tooltip '
654
654
'text or other things.' ,
655
655
properties: {
656
- 'command' : Schema .enumeration (
656
+ 'command' : Schema .string (
657
657
// Commented out values are flutter_driver commands that are not
658
658
// supported, but may be in the future.
659
- values : [
659
+ enumValues : [
660
660
'get_health' ,
661
661
'get_layer_tree' ,
662
662
'get_render_tree' ,
@@ -707,13 +707,13 @@ base mixin DartToolingDaemonSupport
707
707
'The frequency in Hz of the generated move events. '
708
708
'Required for the scroll command' ,
709
709
),
710
- 'finderType' : Schema .enumeration (
710
+ 'finderType' : Schema .string (
711
711
description:
712
712
'The kind of finder to use, if required for the command. '
713
713
'Required for get_text, scroll, scroll_into_view, tap, waitFor, '
714
714
'waitForAbsent, waitForTappable, get_offset, and '
715
715
'get_diagnostics_tree' ,
716
- values : [
716
+ enumValues : [
717
717
'ByType' ,
718
718
'ByValueKey' ,
719
719
'ByTooltipMessage' ,
@@ -728,8 +728,8 @@ base mixin DartToolingDaemonSupport
728
728
description:
729
729
'Required for the ByValueKey finder, the String value of the key' ,
730
730
),
731
- 'keyValueType' : Schema .enumeration (
732
- values : ['int' , 'String' ],
731
+ 'keyValueType' : Schema .string (
732
+ enumValues : ['int' , 'String' ],
733
733
description:
734
734
'Required for the ByValueKey finder, the type of the key' ,
735
735
),
@@ -767,25 +767,25 @@ base mixin DartToolingDaemonSupport
767
767
additionalProperties: true ,
768
768
),
769
769
// This is a boolean but uses the `true` and `false` strings.
770
- 'matchRoot' : Schema .enumeration (
770
+ 'matchRoot' : Schema .string (
771
771
description:
772
772
'Required by the Descendent and Ancestor finders. '
773
773
'Whether the widget matching `of` will be considered for a '
774
774
'match' ,
775
- values : ['true' , 'false' ],
775
+ enumValues : ['true' , 'false' ],
776
776
),
777
777
// This is a boolean but uses the `true` and `false` strings.
778
- 'firstMatchOnly' : Schema .enumeration (
778
+ 'firstMatchOnly' : Schema .string (
779
779
description:
780
780
'Required by the Descendent and Ancestor finders. '
781
781
'If true then only the first ancestor or descendent matching '
782
782
'`matching` will be returned.' ,
783
- values : ['true' , 'false' ],
783
+ enumValues : ['true' , 'false' ],
784
784
),
785
- 'action' : Schema .enumeration (
785
+ 'action' : Schema .string (
786
786
description:
787
787
'Required for send_text_input_action, the input action to send' ,
788
- values : [
788
+ enumValues : [
789
789
'none' ,
790
790
'unspecified' ,
791
791
'done' ,
@@ -806,23 +806,23 @@ base mixin DartToolingDaemonSupport
806
806
'Maximum time in milliseconds to wait for the command to '
807
807
'complete. Defaults to $_defaultTimeoutMs .' ,
808
808
),
809
- 'offsetType' : Schema .enumeration (
809
+ 'offsetType' : Schema .string (
810
810
description:
811
811
'Offset types that can be requested by get_offset. '
812
812
'Required for get_offset.' ,
813
- values : [
813
+ enumValues : [
814
814
'topLeft' ,
815
815
'topRight' ,
816
816
'bottomLeft' ,
817
817
'bottomRight' ,
818
818
'center' ,
819
819
],
820
820
),
821
- 'diagnosticsType' : Schema .enumeration (
821
+ 'diagnosticsType' : Schema .string (
822
822
description:
823
823
'The type of diagnostics tree to request. '
824
824
'Required for get_diagnostics_tree' ,
825
- values : ['renderObject' , 'widget' ],
825
+ enumValues : ['renderObject' , 'widget' ],
826
826
),
827
827
'subtreeDepth' : Schema .int (
828
828
description:
0 commit comments