Remove null from flex documentation (#158086)

Closes https://github.com/flutter/flutter/issues/158085
This commit is contained in:
Valentin Vignal 2024-11-04 20:46:29 +08:00 committed by GitHub
parent ed91ba1ba5
commit 8591d0c16a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5359,10 +5359,10 @@ class Flexible extends ParentDataWidget<FlexParentData> {
/// The flex factor to use for this child.
///
/// If null or zero, the child is inflexible and determines its own size. If
/// non-zero, the amount of space the child can occupy in the main axis is
/// determined by dividing the free space (after placing the inflexible
/// children) according to the flex factors of the flexible children.
/// If zero, the child is inflexible and determines its own size. If non-zero,
/// the amount of space the child can occupy in the main axis is determined by
/// dividing the free space (after placing the inflexible children) according
/// to the flex factors of the flexible children.
final int flex;
/// How a flexible child is inscribed into the available space.