@@ -650,19 +650,21 @@ class SemanticsUpdateBuilder extends NativeFieldWrapperClass2 {
650650 /// reading direction of all these strings is given by `textDirection` .
651651 ///
652652 /// The fields `textSelectionBase` and `textSelectionExtent` describe the
653- /// currently selected text within `value` .
653+ /// currently selected text within `value` . A value of -1 indicates no
654+ /// current text selection base or extent.
654655 ///
655- /// The field `maxValueLength` is used to indicate that an editable text field
656- /// has a limit on the number of characters entered. If it is -1 there is
657- /// no limit on the number of characters entered. The field
656+ /// The field `maxValueLength` is used to indicate that an editable text
657+ /// field has a limit on the number of characters entered. If it is -1 there
658+ /// is no limit on the number of characters entered. The field
658659 /// `currentValueLength` indicates how much of that limit has already been
659- /// used up. When `maxValueLength` is set , `currentValueLength` must also be
660- /// set .
660+ /// used up. When `maxValueLength` is >= 0 , `currentValueLength` must also be
661+ /// >= 0, otherwise it should be specified to be -1 .
661662 ///
662663 /// The field `platformViewId` references the platform view, whose semantics
663664 /// nodes will be added as children to this node. If a platform view is
664- /// specified, `childrenInHitTestOrder` and `childrenInTraversalOrder` must be
665- /// empty.
665+ /// specified, `childrenInHitTestOrder` and `childrenInTraversalOrder` must
666+ /// be empty. A value of -1 indicates that this node is not associated with a
667+ /// platform view.
666668 ///
667669 /// For scrollable nodes `scrollPosition` describes the current scroll
668670 /// position in logical pixel. `scrollExtentMax` and `scrollExtentMin`
@@ -687,32 +689,32 @@ class SemanticsUpdateBuilder extends NativeFieldWrapperClass2 {
687689 /// node starts at `elevation` above the parent and ends at `elevation` +
688690 /// `thickness` above the parent.
689691 void updateNode ({
690- int id,
691- int flags,
692- int actions,
693- int maxValueLength,
694- int currentValueLength,
695- int textSelectionBase,
696- int textSelectionExtent,
697- int platformViewId,
698- int scrollChildren,
699- int scrollIndex,
700- double scrollPosition,
701- double scrollExtentMax,
702- double scrollExtentMin,
703- double elevation,
704- double thickness,
705- Rect rect,
706- String label,
707- String hint,
708- String value,
709- String increasedValue,
710- String decreasedValue,
711- TextDirection textDirection,
712- Float64List transform,
713- Int32List childrenInTraversalOrder,
714- Int32List childrenInHitTestOrder,
715- Int32List additionalActions,
692+ /*required*/ int /*!*/ id,
693+ /*required*/ int /*!*/ flags,
694+ /*required*/ int /*!*/ actions,
695+ /*required*/ int /*!*/ maxValueLength,
696+ /*required*/ int /*!*/ currentValueLength,
697+ /*required*/ int /*!*/ textSelectionBase,
698+ /*required*/ int /*!*/ textSelectionExtent,
699+ /*required*/ int /*!*/ platformViewId,
700+ /*required*/ int /*!*/ scrollChildren,
701+ /*required*/ int /*!*/ scrollIndex,
702+ /*required*/ double /*!*/ scrollPosition,
703+ /*required*/ double /*!*/ scrollExtentMax,
704+ /*required*/ double /*!*/ scrollExtentMin,
705+ /*required*/ double /*!*/ elevation,
706+ /*required*/ double /*!*/ thickness,
707+ /*required*/ Rect /*!*/ rect,
708+ /*required*/ String /*!*/ label,
709+ /*required*/ String /*!*/ hint,
710+ /*required*/ String /*!*/ value,
711+ /*required*/ String /*!*/ increasedValue,
712+ /*required*/ String /*!*/ decreasedValue,
713+ TextDirection /*?*/ textDirection,
714+ /*required*/ Float64List /*!*/ transform,
715+ /*required*/ Int32List /*!*/ childrenInTraversalOrder,
716+ /*required*/ Int32List /*!*/ childrenInHitTestOrder,
717+ /*required*/ Int32List /*!*/ additionalActions,
716718 }) {
717719 assert (_matrix4IsValid (transform));
718720 assert (
@@ -752,35 +754,35 @@ class SemanticsUpdateBuilder extends NativeFieldWrapperClass2 {
752754 );
753755 }
754756 void _updateNode (
755- int id,
756- int flags,
757- int actions,
758- int maxValueLength,
759- int currentValueLength,
760- int textSelectionBase,
761- int textSelectionExtent,
762- int platformViewId,
763- int scrollChildren,
764- int scrollIndex,
765- double scrollPosition,
766- double scrollExtentMax,
767- double scrollExtentMin,
768- double left,
769- double top,
770- double right,
771- double bottom,
772- double elevation,
773- double thickness,
774- String label,
775- String hint,
776- String value,
777- String increasedValue,
778- String decreasedValue,
779- int textDirection,
780- Float64List transform,
781- Int32List childrenInTraversalOrder,
782- Int32List childrenInHitTestOrder,
783- Int32List additionalActions,
757+ int /*!*/ id,
758+ int /*!*/ flags,
759+ int /*!*/ actions,
760+ int /*!*/ maxValueLength,
761+ int /*!*/ currentValueLength,
762+ int /*!*/ textSelectionBase,
763+ int /*!*/ textSelectionExtent,
764+ int /*!*/ platformViewId,
765+ int /*!*/ scrollChildren,
766+ int /*!*/ scrollIndex,
767+ double /*!*/ scrollPosition,
768+ double /*!*/ scrollExtentMax,
769+ double /*!*/ scrollExtentMin,
770+ double /*!*/ left,
771+ double /*!*/ top,
772+ double /*!*/ right,
773+ double /*!*/ bottom,
774+ double /*!*/ elevation,
775+ double /*!*/ thickness,
776+ String /*!*/ label,
777+ String /*!*/ hint,
778+ String /*!*/ value,
779+ String /*!*/ increasedValue,
780+ String /*!*/ decreasedValue,
781+ int /*!*/ textDirection,
782+ Float64List /*!*/ transform,
783+ Int32List /*!*/ childrenInTraversalOrder,
784+ Int32List /*!*/ childrenInHitTestOrder,
785+ Int32List /*!*/ additionalActions,
784786 ) native 'SemanticsUpdateBuilder_updateNode' ;
785787
786788 /// Update the custom semantics action associated with the given `id` .
0 commit comments