getString abstract method Null safety

Future<String?> getString(
  1. String key,
  2. String? defaultValue
)

Gets string for key.