SocialPostWrite class
Constructors
-
SocialPostWrite({String? channel, String? content, List<
String> media = const [], int? scheduleAt, String? status}) - Returns a new SocialPostWrite instance.
Properties
- channel ↔ String?
-
Channel is the network to publish to: x, facebook, instagram, linkedin, tiktok, youtube or threads. Omitted means x. Example: "x"
getter/setter pair
- content ↔ String?
-
Content is the post's text. Required on every update, and bounded at 8192 characters. Example: "Shipping today."
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
media
↔ List<
String> -
Media is the post's attached media as URLs, at most 10. Omitting it CLEARS any stored media: this is a replacement, not a merge.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduleAt ↔ int?
-
ScheduleAt is when to publish, as a unix timestamp in SECONDS. 0 means unscheduled. Moving it into the past here does NOT publish the post — that is the scheduler's to notice, or the publish operation's.
getter/setter pair
- status ↔ String?
-
Status is the post's lifecycle state: draft, scheduled, published or failed. Omitting it RESETS the post to draft.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → SocialPostWrite? -
Returns a new SocialPostWrite instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< SocialPostWrite> -
mapFromJson(
dynamic json) → Map< String, SocialPostWrite> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< SocialPostWrite> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.