BootstrapConfiguration class final

Annotations
  • @immutable

Constructors

BootstrapConfiguration({Duration receiveTimeout = DEFAULT_REQUEST_TIMEOUT, Duration connectTimeout = DEFAULT_CONNECT_TIMEOUT, bool responsePreprocessorDelegate(dynamic)?, IAuthorization? defaultAuthorization, String? defaultUserAgent, Map<String, dynamic>? defaultHeaders, bool shouldFollowRedirects = false, int maxRedirects = 5, StatisticsCallback? statisticsDelegate, List<Interceptor>? interceptors, bool enableDebugMode = false, List<IWordpressMiddleware>? middlewares})
const

Properties

connectTimeout Duration
final
defaultAuthorization IAuthorization?
final
defaultHeaders Map<String, dynamic>?
final
defaultUserAgent String?
final
enableDebugMode bool
final
hashCode int
The hash code for this object.
no setteroverride
interceptors List<Interceptor>?
final
maxRedirects int
final
middlewares List<IWordpressMiddleware>?
final
receiveTimeout Duration
final
responsePreprocessorDelegate → (bool Function(dynamic)?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldFollowRedirects bool
final
statisticsDelegate StatisticsCallback?
final

Methods

copyWith({bool? enableDebugMode, Duration? receiveTimeout, bool responsePreprocessorDelegate(dynamic)?, IAuthorization? defaultAuthorization, String? defaultUserAgent, Map<String, dynamic>? defaultHeaders, bool? shouldFollowRedirects, int? maxRedirects, List<Interceptor>? interceptors, bool? synchronized, StatisticsCallback? statisticsDelegate, List<IWordpressMiddleware>? middlewares, Duration? connectTimeout}) BootstrapConfiguration
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 ==(covariant BootstrapConfiguration other) bool
The equality operator.
override