未验证 提交 8a69d7f7 编写于 作者: M Michael Goderbauer 提交者: GitHub

Add toString to WindowPadding (#5375)

上级 d37ab1cc
...@@ -53,7 +53,7 @@ enum AppLifecycleState { ...@@ -53,7 +53,7 @@ enum AppLifecycleState {
/// in the foreground inactive state. Apps transition to this state when /// in the foreground inactive state. Apps transition to this state when
/// another activity is focused, such as a split-screen app, a phone call, /// another activity is focused, such as a split-screen app, a phone call,
/// a picture-in-picture app, a system dialog, or another window. /// a picture-in-picture app, a system dialog, or another window.
/// ///
/// Apps in this state should assume that they may be [paused] at any time. /// Apps in this state should assume that they may be [paused] at any time.
inactive, inactive,
...@@ -79,7 +79,7 @@ enum AppLifecycleState { ...@@ -79,7 +79,7 @@ enum AppLifecycleState {
/// A representation of distances for each of the four edges of a rectangle, /// A representation of distances for each of the four edges of a rectangle,
/// used to encode the view insets and padding that applications should place /// used to encode the view insets and padding that applications should place
/// around their user interface, as exposed by [Window.viewInsets] and /// around their user interface, as exposed by [Window.viewInsets] and
/// [Window.padding]. View insets and padding are preferrably read via /// [Window.padding]. View insets and padding are preferably read via
/// [MediaQuery.of]. /// [MediaQuery.of].
/// ///
/// For a generic class that represents distances around a rectangle, see the /// For a generic class that represents distances around a rectangle, see the
...@@ -109,6 +109,11 @@ class WindowPadding { ...@@ -109,6 +109,11 @@ class WindowPadding {
/// A window padding that has zeros for each edge. /// A window padding that has zeros for each edge.
static const WindowPadding zero = const WindowPadding._(left: 0.0, top: 0.0, right: 0.0, bottom: 0.0); static const WindowPadding zero = const WindowPadding._(left: 0.0, top: 0.0, right: 0.0, bottom: 0.0);
@override
String toString() {
return '$runtimeType(left: $left, top: $top, right: $right, bottom: $bottom)';
}
} }
/// An identifier used to select a user's language and formatting preferences, /// An identifier used to select a user's language and formatting preferences,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册