UIMasonry constructor
UIMasonry(})
Implementation
UIMasonry(super.parent, Iterable<MasonryItem> items,
{int? masonryWidthSize,
int? masonryHeightSize,
int? itemsMargin,
double? dimensionTolerance,
String? width,
String? height,
this.scrollbarColors,
super.classes,
super.style})
: items = List<MasonryItem>.from(items),
super(componentClass: 'ui-masonry') {
this.width = width;
this.height = height;
this.itemsMargin = itemsMargin;
this.dimensionTolerance = dimensionTolerance;
_masonryWidthSize = NNField<int?>(0,
filter: (n) => n is int && n > 10 ? n : null,
resolver: computeMasonryWidthSize);
_masonryHeightSize = NNField<int?>(0,
filter: (n) => n is int && n > 10 ? n : null,
resolver: computeMasonryHeightSize);
_masonryWidthSize.set(masonryWidthSize);
_masonryHeightSize.set(masonryHeightSize);
_computeGCDCache = CachedComputation(_computeGCDImpl);
}