LuckyEdgeInsets class final
逻辑像素内边距,简写采用 CSS 的上、右、下、左顺序。
例如 LuckyEdgeInsets.css([8, 12]) 表示上下 8、左右 12。
- Annotations
Constructors
- LuckyEdgeInsets.all(double value)
-
将四边内边距设为
value。const -
LuckyEdgeInsets.css(List<
double> values) -
从 1–4 个
values解析 CSS 简写,其它长度抛出 ArgumentError。factory - LuckyEdgeInsets.only({double top = 0, double right = 0, double bottom = 0, double left = 0})
-
分别指定四边内边距,未指定的边为零。
const
- LuckyEdgeInsets.symmetric({double vertical = 0, double horizontal = 0})
-
分别设置上下
vertical与左右horizontal的内边距。const
Properties
Methods
-
copyWith(
{double? top, double? right, double? bottom, double? left}) → LuckyEdgeInsets - 返回替换指定边距的副本;参数为 null 时保留原值。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
比较四边的内边距。
override
Constants
- zero → const LuckyEdgeInsets
- 四边为零的内边距。