File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -168,22 +168,22 @@ class GridViewNode extends SinglePlaceholderNode
168168 };
169169 }
170170
171- /// Creates a [GridViewNode] from a JSON object.
172- factory GridViewNode .fromJson (Map json) => _$GridViewNodeFromJson (json);
173-
174- @override
175- Map toJson () => _$GridViewNodeToJson (this );
176-
177171 /// Returns the appropriate alignment of the child based on the
178172 /// [scrollDirection] and [reverse] properties.
179- AlignmentModel childAlignment () {
173+ AlignmentModel gridChildAlignment () {
180174 switch (scrollDirection) {
181175 case AxisC .horizontal:
182176 return reverse ? AlignmentModel .topRight : AlignmentModel .topLeft;
183177 case AxisC .vertical:
184178 return reverse ? AlignmentModel .bottomLeft : AlignmentModel .topLeft;
185179 }
186180 }
181+
182+ /// Creates a [GridViewNode] from a JSON object.
183+ factory GridViewNode .fromJson (Map json) => _$GridViewNodeFromJson (json);
184+
185+ @override
186+ Map toJson () => _$GridViewNodeToJson (this );
187187}
188188
189189/// The properties of a [GridViewNode] .
You can’t perform that action at this time.
0 commit comments