Skip to content

Commit

Permalink
docs: update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
tnc1997 committed Feb 7, 2021
1 parent 55b5962 commit 0516662
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/extensions/response_extensions.dart
@@ -1,5 +1,6 @@
import 'package:http/http.dart';

extension ResponseExtensions on Response {
/// Returns true if the status code is success.
bool get isSuccessStatusCode => statusCode >= 200 && statusCode < 300;
}

0 comments on commit 0516662

Please sign in to comment.