toRect method

Rect toRect([
  1. Offset? offset
])

Implementation

Rect toRect([Offset? offset]) => Rect.fromCenter(
    center: offset ?? Offset.zero, width: width, height: height);