@@ -653,10 +653,10 @@ base mixin DartToolingDaemonSupport
653653 'figure out how to find the widget instead of just guessing tooltip '
654654 'text or other things.' ,
655655 properties: {
656- 'command' : Schema .enumeration (
656+ 'command' : Schema .string (
657657 // Commented out values are flutter_driver commands that are not
658658 // supported, but may be in the future.
659- values : [
659+ enumValues : [
660660 'get_health' ,
661661 'get_layer_tree' ,
662662 'get_render_tree' ,
@@ -707,13 +707,13 @@ base mixin DartToolingDaemonSupport
707707 'The frequency in Hz of the generated move events. '
708708 'Required for the scroll command' ,
709709 ),
710- 'finderType' : Schema .enumeration (
710+ 'finderType' : Schema .string (
711711 description:
712712 'The kind of finder to use, if required for the command. '
713713 'Required for get_text, scroll, scroll_into_view, tap, waitFor, '
714714 'waitForAbsent, waitForTappable, get_offset, and '
715715 'get_diagnostics_tree' ,
716- values : [
716+ enumValues : [
717717 'ByType' ,
718718 'ByValueKey' ,
719719 'ByTooltipMessage' ,
@@ -728,8 +728,8 @@ base mixin DartToolingDaemonSupport
728728 description:
729729 'Required for the ByValueKey finder, the String value of the key' ,
730730 ),
731- 'keyValueType' : Schema .enumeration (
732- values : ['int' , 'String' ],
731+ 'keyValueType' : Schema .string (
732+ enumValues : ['int' , 'String' ],
733733 description:
734734 'Required for the ByValueKey finder, the type of the key' ,
735735 ),
@@ -767,25 +767,25 @@ base mixin DartToolingDaemonSupport
767767 additionalProperties: true ,
768768 ),
769769 // This is a boolean but uses the `true` and `false` strings.
770- 'matchRoot' : Schema .enumeration (
770+ 'matchRoot' : Schema .string (
771771 description:
772772 'Required by the Descendent and Ancestor finders. '
773773 'Whether the widget matching `of` will be considered for a '
774774 'match' ,
775- values : ['true' , 'false' ],
775+ enumValues : ['true' , 'false' ],
776776 ),
777777 // This is a boolean but uses the `true` and `false` strings.
778- 'firstMatchOnly' : Schema .enumeration (
778+ 'firstMatchOnly' : Schema .string (
779779 description:
780780 'Required by the Descendent and Ancestor finders. '
781781 'If true then only the first ancestor or descendent matching '
782782 '`matching` will be returned.' ,
783- values : ['true' , 'false' ],
783+ enumValues : ['true' , 'false' ],
784784 ),
785- 'action' : Schema .enumeration (
785+ 'action' : Schema .string (
786786 description:
787787 'Required for send_text_input_action, the input action to send' ,
788- values : [
788+ enumValues : [
789789 'none' ,
790790 'unspecified' ,
791791 'done' ,
@@ -806,23 +806,23 @@ base mixin DartToolingDaemonSupport
806806 'Maximum time in milliseconds to wait for the command to '
807807 'complete. Defaults to $_defaultTimeoutMs .' ,
808808 ),
809- 'offsetType' : Schema .enumeration (
809+ 'offsetType' : Schema .string (
810810 description:
811811 'Offset types that can be requested by get_offset. '
812812 'Required for get_offset.' ,
813- values : [
813+ enumValues : [
814814 'topLeft' ,
815815 'topRight' ,
816816 'bottomLeft' ,
817817 'bottomRight' ,
818818 'center' ,
819819 ],
820820 ),
821- 'diagnosticsType' : Schema .enumeration (
821+ 'diagnosticsType' : Schema .string (
822822 description:
823823 'The type of diagnostics tree to request. '
824824 'Required for get_diagnostics_tree' ,
825- values : ['renderObject' , 'widget' ],
825+ enumValues : ['renderObject' , 'widget' ],
826826 ),
827827 'subtreeDepth' : Schema .int (
828828 description:
0 commit comments