ThumbnailSize.square constructor

const ThumbnailSize.square(
  1. int dimension
)

Creates a square ThumbnailSize with the given dimension.

Implementation

const ThumbnailSize.square(int dimension)
    : width = dimension,
      height = dimension;