LayoutConfig constructor
LayoutConfig({
- MarginSpec? leftSpec,
- MarginSpec? rightSpec,
- MarginSpec? topSpec,
- MarginSpec? bottomSpec,
Create a new LayoutConfig used by DynamicLayoutManager
.
Implementation
LayoutConfig({
MarginSpec? leftSpec,
MarginSpec? rightSpec,
MarginSpec? topSpec,
MarginSpec? bottomSpec,
}) : leftSpec = leftSpec ?? MarginSpec.defaultSpec,
rightSpec = rightSpec ?? MarginSpec.defaultSpec,
topSpec = topSpec ?? MarginSpec.defaultSpec,
bottomSpec = bottomSpec ?? MarginSpec.defaultSpec;