height property

double? height

Do that:

return context.size.height

Implementation

double? get height => size?.height;