width property

double? width

Do that:

return context.size.width

Implementation

double? get width => size?.width;