WidgetPublicData class
Contains public data of a widget
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- WidgetPublicData({required String data, required int pollPeriod})
-
const
Properties
- data → String
-
data Public data of the widget
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- pollPeriod → int
-
pollPeriod The number of seconds after which the public data can be
polled again
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? data, int? pollPeriod}) → WidgetPublicData -
Available on WidgetPublicData, provided by the WidgetPublicDataExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → WidgetPublicData?
Constants
- constructor → const String