SeatWidgetLayoutRowConfig constructor

SeatWidgetLayoutRowConfig({
  1. int count = 5,
  2. double? seatSpacing,
  3. Size? seatSize,
  4. SeatWidgetLayoutRowAlignment alignment = SeatWidgetLayoutRowAlignment.spaceEvenly,
})

Implementation

SeatWidgetLayoutRowConfig({
  this.count = 5,
  double? seatSpacing,
  Size? seatSize,
  this.alignment = SeatWidgetLayoutRowAlignment.spaceEvenly,
})  : seatSpacing = seatSpacing ?? ScreenAdapter.getWidth(Global.appContext(), 20.0),
      seatSize = seatSize ??
          Size(
            ScreenAdapter.getWidth(Global.appContext(), 50.0),
            ScreenAdapter.getWidth(Global.appContext(), 72.0),
          );