of static method
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);
}
Retrieves the BoxTestSpec from the nearest Mix ancestor.
If no ancestor is found, returns BoxTestSpec.
static BoxTestSpec of(BuildContext context) {
final mix = Mix.of(context);
return BoxTestSpec.from(mix);
}