getText method Null safety

String getText()

Gets text.