OpenapiRepository class
Annotation class for generating Repository, DataBlocs, ListBlocs
Constructors
-
OpenapiRepository({required Type buildFor, List<
RepositoryBuilder> builderList = const [], int connectTimeout = 10000, int receiveTimeout = 15000, int sendTimeout = 15000, int defaultOffset = 0, int defaultPageSize = 100, String? liveBasePath, String? baseUrl, CrudOperationConfig? crudOperationConfig = const CrudOperationConfig(), List<BlocMixin> blocMixins = const [], List<String> ignoreParams = defaultIgnoreParams}) -
const
Properties
- baseUrl → String?
-
base url
final
-
blocMixins
→ List<
BlocMixin> -
List of
BlocMixin
to allow addingmixin
on ListBloc/DataBlocfinal -
builderList
→ List<
RepositoryBuilder> -
List of
RepositoryBuilder
to allow/ignore certain methodsfinal - buildFor → Type
-
The name of class for which the repository will be generated.
final
- connectTimeout → int
-
connection connect timeout in milliseconds
final
- crudOperationConfig → CrudOperationConfig?
-
final
- defaultOffset → int
-
default offset value for paginated blocs
final
- defaultPageSize → int
-
default page size value for paginated blocs
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoreParams
→ List<
String> -
Parameters to ignore while generating code for Filters
final
- liveBasePath → String?
-
live/production base path(url) which will override
baseUrl
in release modefinal - receiveTimeout → int
-
connection receive timeout in milliseconds
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → int
-
connection send timeout in milliseconds
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited