TWGenerators.layout constructor

TWGenerators.layout({
  1. TWContainerType? container,
  2. bool mxAuto,
  3. TWFlexValue? flex,
  4. TWFlexDirection? flexDirection,
  5. TWJustifyContent? justifyContent,
  6. TWAlignItems? alignItems,
  7. TWGridColumns? gridCols,
  8. TWGridColumns? gridColumn,
  9. TWGridRows? gridRows,
  10. TWGridRows? gridRow,
  11. TWPositionType? position,
  12. TWSpacingUnit? top,
  13. TWSpacingUnit? right,
  14. TWSpacingUnit? bottom,
  15. TWSpacingUnit? left,
  16. TWDisplayType? display,
  17. TWVisibilityType? visibility,
})

Implementation

factory TWGenerators.layout({
  // Container
  TWContainerType? container,
  bool mxAuto,

  // Flexbox
  TWFlexValue? flex,
  TWFlexDirection? flexDirection,
  TWJustifyContent? justifyContent,
  TWAlignItems? alignItems,

  // Grid
  TWGridColumns? gridCols,
  TWGridColumns? gridColumn,
  TWGridRows? gridRows,
  TWGridRows? gridRow,

  // Positioning
  TWPositionType? position,
  TWSpacingUnit? top,
  TWSpacingUnit? right,
  TWSpacingUnit? bottom,
  TWSpacingUnit? left,

  // Display
  TWDisplayType? display,
  TWVisibilityType? visibility,
}) = _TWLayoutGenerator;