from static method

BoxSpec from(
  1. MixData mix
)

Retrieves the BoxSpec from the given MixData.

If not found, returns BoxSpec.empty.

Implementation

static BoxSpec from(MixData mix) {
  return mix.attributeOf<BoxSpecAttribute>()?.resolve(mix) ?? const BoxSpec();
}