type property
BoxType
get
type
Returns the BoxType of this box instance.
- Returns BoxType.isolatedLazy if both
isIsolatedandisLazyare true. - Returns BoxType.isolated if
isIsolatedis true andisLazyis false. - Returns BoxType.lazy if
isLazyis true andisIsolatedis false. - Returns BoxType.regular otherwise.
Implementation
BoxType get type {
if (isIsolated) return isLazy ? BoxType.isolatedLazy : BoxType.isolated;
if (isLazy) return BoxType.lazy;
return BoxType.regular;
}