type property

BoxType get type

Returns the BoxType of this box instance.

Implementation

BoxType get type {
  if (isIsolated) return isLazy ? BoxType.isolatedLazy : BoxType.isolated;
  if (isLazy) return BoxType.lazy;
  return BoxType.regular;
}