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 h = height ?? 12;
  final double w = constraints.hasBoundedWidth ? constraints.maxWidth : 200;
  final double t = thickness ?? 0.8;
  final String c = color ?? 'B0BEC5';
  return _DividerBox(PwSize(w, h), t, c, indent, endIndent);
}