calcSize method

  1. @override
Size? calcSize(
  1. BuildContext context, {
  2. double spacing = 0,
  3. Axis orientation = Axis.horizontal,
  4. dynamic param,
})
override

Implementation

@override
Size? calcSize(
  BuildContext context, {
  double spacing = 0,
  Axis orientation = Axis.horizontal,
  dynamic param,
}) {
  if (orientation == Axis.horizontal) {
    return Size(16, length);
  } else {
    return Size(length, 16);
  }
}