format method

  1. @override
LayoutFormat format(
  1. double containerWidth, [
  2. double containerHeight = double.maxFinite
])
override

Implementation

@override
LayoutFormat format(
  double containerWidth, [
  double containerHeight = double.maxFinite,
]) {
  // Apply the same margin for both sides.
  final horizontalMargin = leftMargin(containerWidth);
  return LayoutFormat(
    columns: 12,
    gutter: 24,
    leftMargin: horizontalMargin,
    topMargin: 0,
    rightMargin: horizontalMargin,
    bottomMargin: 0,
  );
}