diff --git a/CHANGELOG.md b/CHANGELOG.md index e10ffc2..30ce3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.0.1 +* Migrated to null safety + # 0.1.2 * Fixing the changelog version titles diff --git a/lib/twitter_api.dart b/lib/twitter_api.dart index aa8c9a1..9fb5f45 100644 --- a/lib/twitter_api.dart +++ b/lib/twitter_api.dart @@ -134,7 +134,7 @@ class twitterApi { /// /// The twitter developer website also goes into detail about [options] that can /// be applied. These [options] are of type Map. - getTwitterRequest(String method, String url, {Map options, int timeout = 10}) async { + getTwitterRequest(String method, String url, {Map? options, int timeout = 10}) async { if(options == null) options = {}; // Create the nonce @@ -148,7 +148,7 @@ class twitterApi { var authHeader = _getOauthHeader(); // The response from the request - Future response; + Future? response; // Add a post and get option if(method.toUpperCase() == "GET") diff --git a/pubspec.yaml b/pubspec.yaml index 7ed5529..f2c6e94 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,11 @@ name: twitter_api -version: 0.1.2 -author: "Dart Team " +version: 1.0.1 homepage: https://github.com/stefanuros/dartTwitterAPI description: An easy way to authenticate and make requests to the Twitter API. environment: - sdk: '>=2.1.0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' dependencies: - http: ^0.12.0+2 - crypto: ^2.1.3 + http: ^0.13.4 + crypto: ^3.0.1