getProtocol method

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.

Implementation

String? getProtocol([String? defaultValue]) {
  var result = super.getAsStringWithDefault('protocol', defaultValue ?? '');
  return result != '' ? result : null;
}