Protocol class

Protocol

Preset values implementor class. A typical consumer class for preset values. Basically, Protocol help to implement the preset values in both MaterialApp, MaterialApp.theme and ThemeData.extensions.

Protocol.xls & Protocol.irs;
Inheritance

Constructors

Protocol({bool useMaterial3 = false, CreateTheme theme = _irsTh_, CreateExtensions extensions = _irsEx_, UpdateTheme updateTheme = _irsUTh_, UpdateExtensions updateExtensions = _irsUEx_})
const
Protocol.of(BuildContext context)
factory

Properties

extensions CreateExtensions
Consumer extensions constructor that defines how this protocol will implement preset values into the conventional material theme extensions.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CreateTheme
Consumer theme constructor that defines how this protocol will implement preset values into the conventional material theme data.
final
type Object
The extension's type.
no setterinherited
updateExtensions UpdateExtensions
Use endpoint to instruct protocol to update the instance value of theme extensions during it's usage based on context. Same as setting extensions to:
final
updateTheme UpdateTheme
Use endpoint to instruct protocol to update the instance value of theme during it's usage based on context. Same as setting theme to:
final
useMaterial3 bool
final

Methods

copyWith({bool? useMaterial3, CreateTheme? theme, UpdateTheme? updateTheme, CreateExtensions? extensions, UpdateExtensions? updateExtensions}) Protocol
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<Protocol>? other, double t) Protocol
Linearly interpolate with another ThemeExtension object.
override
merge(Protocol? other) Protocol
merge other into this preset. Works as copyWith with all it's entry arguments assigned to other's corresponding fields.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this preset value to its encodable hashmap of String to it's encodable data. Override this method to declare how this field can be converted to it's encodable version.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

irs → const Protocol