width property

double? get width

Do that:

return context.size.width

Implementation

double? get width => size?.width;