height property

double? get height

Do that:

return context.size.height

Implementation

double? get height => size?.height;