getProtocol method Null safety

String? getProtocol(
  1. [String? defaultValue]
)

Gets the connection protocol.

  • defaultValue (optional) the default protocol Return the connection protocol or the default value if it's not set.