of static method

ImageTestSpec of(
  1. BuildContext context
)

Retrieves the ImageTestSpec from the nearest Mix ancestor.

If no ancestor is found, returns ImageTestSpec.

Implementation

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

  return ImageTestSpec.from(mix);
}