max method

int max()

Returns the larger value

Implementation

int max() => math.max(width, height);