SubredditStyleSheet class

Provides a set of stylesheet functions to a Subreddit.

Constructors

SubredditStyleSheet(SubredditRef _subreddit)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() Future<StyleSheet>
Return the stylesheet for the Subreddit.
deleteHeader() Future<void>
Remove the current header image for the Subreddit.
deleteImage(String name) Future<void>
Remove the named image from the Subreddit.
deleteMobileHeader() Future<void>
Remove the current mobile header image for the Subreddit.
deleteMobileIcon() Future<void>
Remove the current mobile icon for the Subreddit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(String stylesheet, {String? reason}) Future<void>
Update the stylesheet for the Subreddit.
upload(String name, {Uri? imagePath, Uint8List? bytes, required ImageFormat format}) Future<Uri>
Upload an image to the Subreddit.
uploadHeader({Uri? imagePath, Uint8List? bytes, required ImageFormat format}) Future<Uri>
Upload an image to be used as the header image for the Subreddit.
uploadMobileHeader({Uri? imagePath, Uint8List? bytes, required ImageFormat format}) Future<Uri>
Upload an image to be used as the mobile header image for the Subreddit.
uploadMobileIcon({Uri? imagePath, Uint8List? bytes, required ImageFormat format}) Future<Uri>
Upload an image to be used as the mobile icon image for the Subreddit.

Operators

operator ==(Object other) bool
The equality operator.
inherited