We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
removeClientFactory
1 parent 841703d commit 4489819Copy full SHA for 4489819
lib/src/core/servient.dart
@@ -202,6 +202,14 @@ class Servient {
202
}
203
204
205
+ /// Removes a [ProtocolClientFactory] matching the given [scheme] from this
206
+ /// [Servient], if present.
207
+ ///
208
+ /// If a [ProtocolClientFactory] was removed, the method returns it, otherwise
209
+ /// the return value is `null`.
210
+ ProtocolClientFactory? removeClientFactory(String scheme) =>
211
+ _clientFactories.remove(scheme);
212
+
213
/// Checks whether a [ProtocolClient] is avaiable for a given [scheme].
214
bool hasClientFor(String scheme) => _clientFactories.containsKey(scheme);
215
0 commit comments