UpdatePageRequest class final
Constructors
-
UpdatePageRequest({required int id, required String slug, required String content, required String title, DateTime? date, int? parent, DateTime? dateGmt, ContentStatus status = ContentStatus.draft, int? author, String? excerpt, int? featuredMedia, Status commentStatus = Status.closed, Status pingStatus = Status.closed, String? template, String? password, CancelToken? cancelToken, IAuthorization? authorization, WordpressEvents? events, Duration receiveTimeout = const Duration(seconds: 30), bool requireAuth = true, Duration sendTimeout = const Duration(seconds: 30), ValidatorCallback? validator, Map<
String, dynamic> ? extra, Map<String, String> ? headers, Map<String, dynamic> ? queryParameters})
Properties
-
getter/setter pair
-
The authorization to use for the request.
finalinherited
- cancelToken → CancelToken?
-
The cancel token to cancel the request.
finalinherited
- commentStatus ↔ Status
-
getter/setter pair
- content ↔ String
-
getter/setter pair
- date ↔ DateTime?
-
getter/setter pair
- dateGmt ↔ DateTime?
-
getter/setter pair
- events → WordpressEvents?
-
The events to listen to.
finalinherited
- excerpt ↔ String?
-
getter/setter pair
-
extra
→ Map<
String, dynamic> ? -
Allows you to pass custom key value pairs with the requests.
finalinherited
- featuredMedia ↔ int?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
The extra headers to send with the request.
finalinherited
- id ↔ int
-
getter/setter pair
-
getter/setter pair
- parent ↔ int?
-
getter/setter pair
- password ↔ String?
-
getter/setter pair
- pingStatus ↔ Status
-
getter/setter pair
-
queryParameters
→ Map<
String, dynamic> ? -
The query parameters to send with the request.
finalinherited
- receiveTimeout → Duration
-
The timeout duration for receiving the response.
finalinherited
- requireAuth → bool
-
Whether the request requires authentication.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration
-
The timeout duration for sending the request.
finalinherited
- slug ↔ String
-
getter/setter pair
- status ↔ ContentStatus
-
getter/setter pair
- template ↔ String?
-
getter/setter pair
- title ↔ String
-
getter/setter pair
- validator → ValidatorCallback?
-
The validator to validate the response.
finalinherited
Methods
-
build(
Uri baseUrl) → WordpressRequest -
Builds the request content.
override
-
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
-
operator [](
String key) → String -
inherited