layout method

  1. @override
PwBox layout(
  1. Context context,
  2. BoxConstraints constraints
)
override

layout API.

Implementation

@override
PwBox layout(Context context, BoxConstraints constraints) {
  final double w = width ?? 16;
  final double h = constraints.hasBoundedHeight ? constraints.maxHeight : 24;
  final double t = thickness ?? 0.8;
  final String c = color ?? 'B0BEC5';
  return _VerticalDividerBox(
    PwSize(w, h),
    t,
    c,
    indent,
    endIndent,
  );
}