NewsApi class
Constructors
-
NewsApi({required String apiKey, BaseOptions? dioOptions, List<Interceptor>? interceptors, bool debugLog = false})
-
Properties
-
apiKey
↔ String
-
you can change the key at any time
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
everything({String? q, String? qInTitle, String? sources, String? domains, String? excludeDomains, dynamic from, dynamic to, String? language, String? sortBy, int? pageSize, int? page})
→ Future<ArticleResponse>
-
see more: https://newsapi.org/docs/endpoints/everything
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
sources({String? category, String? language, String? country})
→ Future<SourceResponse>
-
see more: https://newsapi.org/docs/endpoints/sources
-
topHeadlines({String? country, String? category, String? sources, String? q, String? language, int? pageSize, int? page})
→ Future<ArticleResponse>
-
see more: https://newsapi.org/docs/endpoints/top-headlines
-
toString()
→ String
-
A string representation of this object.
inherited