supportedThreadingMethods property Null safety

List<String> supportedThreadingMethods

Retrieves the supported threading methods, e.g. [], ['ORDEREDSUBJECT'] or ['ORDEREDSUBJECT', 'REFERENCES']

Implementation

List<String> get supportedThreadingMethods {
  var methods = _supportedThreadingMethods;
  if (methods == null) {
    methods = <String>[];
    _supportedThreadingMethods = methods;
    final caps = capabilities;
    if (caps != null) {
      for (final cap in caps) {
        if (cap.name.startsWith('THREAD=')) {
          methods.add(cap.name.substring('THREAD='.length));
        }
      }
    }
  }
  return methods;
}