getBoxConstraints method

BoxConstraints getBoxConstraints(
  1. SliverConstraints constraints
)

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

Implementation

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