From 0facb783358293c46dfc4a8a0ad001c35b1d0e8c Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 19 Dec 2023 11:00:27 +0100 Subject: [PATCH] refactor(examples): remove obsolete explicit typing --- example/example.dart | 6 +++--- example/http_basic_authentication.dart | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/example.dart b/example/example.dart index b60a8921..6afe1dba 100644 --- a/example/example.dart +++ b/example/example.dart @@ -23,10 +23,10 @@ Future basicCredentialsCallback( } Future main(List args) async { - final CoapClientFactory coapClientFactory = CoapClientFactory(); - final HttpClientFactory httpClientFactory = + final coapClientFactory = CoapClientFactory(); + final httpClientFactory = HttpClientFactory(basicCredentialsCallback: basicCredentialsCallback); - final MqttClientFactory mqttClientFactory = MqttClientFactory(); + final mqttClientFactory = MqttClientFactory(); final servient = Servient( clientFactories: [ diff --git a/example/http_basic_authentication.dart b/example/http_basic_authentication.dart index b8dd62ac..dff3a1b0 100644 --- a/example/http_basic_authentication.dart +++ b/example/http_basic_authentication.dart @@ -68,8 +68,9 @@ Future basicCredentialsCallback( /// Illustrates the usage of both the basic and the automatic security scheme, /// with a server supporting basic authentication. Future main(List args) async { - final HttpClientFactory httpClientFactory = - HttpClientFactory(basicCredentialsCallback: basicCredentialsCallback); + final httpClientFactory = HttpClientFactory( + basicCredentialsCallback: basicCredentialsCallback, + ); final servient = Servient( clientFactories: [ httpClientFactory,