getBoxConstraints method

BoxConstraints getBoxConstraints (SliverConstraints constraints)

Returns a tight BoxConstraints that forces the child to have the required size.

Implementation

BoxConstraints getBoxConstraints(SliverConstraints constraints) {
  return constraints.asBoxConstraints(
    minExtent: mainAxisExtent,
    maxExtent: mainAxisExtent,
    crossAxisExtent: crossAxisExtent,
  );
}