size property

Size? get size

Do that:

return key.currentContext.size

Implementation

Size? get size => currentContext?.size;