SubInfo class Null safety
Constructors
- SubInfo()
- Constructs a SubInfo object
- SubInfo.fromSubreddit(UserDataModel myUserDatas, Subreddit subredditInfos)
- Constructs a SubInfo object from a Subreddit Object
Properties
-
Banner image url
read / write
- description ↔ String
-
Subreddit description
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- iconImg ↔ String
-
Profile image url
read / write
- nbFollowers ↔ int
-
Number of followers
read / write
- rawData ↔ Subreddit?
-
Subreddit raw Data
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- subJoined ↔ bool
-
Boolean telling if user is subscribed to Subreddit
read / write
- subName ↔ String
-
Subreddit name
read / write
Methods
-
isUserSubscribed(
UserDataModel myUserDatas, Subreddit subredditInfos) → bool - Checks if the user is subscribed to the fetched Subreddit
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, dynamic> - Creates a map from a SubInfo Object
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited