of static method

BoxSpec of(
  1. BuildContext context
)

Retrieves the BoxSpec from the nearest Mix ancestor.

If no ancestor is found, returns BoxSpec.empty.

Implementation

static BoxSpec of(BuildContext context) {
  final mix = Mix.of(context);

  return BoxSpec.from(mix);
}