LayoutConfig constructor

LayoutConfig({
  1. MarginSpec? leftSpec,
  2. MarginSpec? rightSpec,
  3. MarginSpec? topSpec,
  4. 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;