of static method

BoxTestSpec of(
  1. BuildContext context
)

Retrieves the BoxTestSpec from the nearest Mix ancestor.

If no ancestor is found, returns BoxTestSpec.

Implementation

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

  return BoxTestSpec.from(mix);
}