Unverified Commit c4a81e9e authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Remove unused replacement from Visibility.maintain (#123039)

Remove unused replacement from Visibility.maintain
parent 23dbc937
...@@ -81,8 +81,6 @@ class Visibility extends StatelessWidget { ...@@ -81,8 +81,6 @@ class Visibility extends StatelessWidget {
/// Control whether the given [child] is [visible]. /// Control whether the given [child] is [visible].
/// ///
/// The [child] and [replacement] arguments must not be null.
///
/// This is equivalent to the default [Visibility] constructor with all /// This is equivalent to the default [Visibility] constructor with all
/// "maintain" fields set to true. This constructor should be used in place of /// "maintain" fields set to true. This constructor should be used in place of
/// an [Opacity] widget that only takes on values of `0.0` or `1.0`, as it /// an [Opacity] widget that only takes on values of `0.0` or `1.0`, as it
...@@ -90,13 +88,13 @@ class Visibility extends StatelessWidget { ...@@ -90,13 +88,13 @@ class Visibility extends StatelessWidget {
const Visibility.maintain({ const Visibility.maintain({
super.key, super.key,
required this.child, required this.child,
this.replacement = const SizedBox.shrink(),
this.visible = true, this.visible = true,
}) : maintainState = true, }) : maintainState = true,
maintainAnimation = true, maintainAnimation = true,
maintainSize = true, maintainSize = true,
maintainSemantics = true, maintainSemantics = true,
maintainInteractivity = true; maintainInteractivity = true,
replacement = const SizedBox.shrink(); // Unused since maintainState is always true.
/// The widget to show or hide, as controlled by [visible]. /// The widget to show or hide, as controlled by [visible].
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment