MediaType class

A type of media that is significantly distinguishable from other media such that it is deserving of its own core functionality when viewing media items. A MediaType has its own history and home tab.

Mixed in types
Implementers

Constructors

MediaType({required String uniqueKey, required IconData icon, required IconData outlinedIcon})
Initialise this media type with the predetermined and hardset values.

Properties

floatingSearchBarController → FloatingSearchBarController
The floating search bar controller for this media type's tab page.
final
hashCode int
The hash code for this object.
read-onlyoverride
hasListeners bool
Whether any listeners are currently registered.
read-onlyinherited
home Widget
The body that will be shown when this media type's tab is the current selected home tab.
read-only
icon IconData
An icon that will represent this media type in its home tab.
final
outlinedIcon IconData
An icon that represents this media type when unselected in its home tab.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scrollController ScrollController
The controller to be used for this media type's home tab when it has enough media items to display that require the tab to be scrollable.
read / write
tabRefreshNotifier ChangeNotifier
Used to notify the media type tab to refresh.
final
uniqueKey String
A unique name that allows distinguishing this type from others, particularly for the purposes of differentiating between persistent settings keys. This does not differ when the user's app language changes.
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
refreshTab() → void
Use this to refresh a media type's tab page on the main menu.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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