ResponsiveTheme class

Data class to handle the theme responsive information, this class may be used from ResponsiveWrapper It's used from ResponsiveWrapper to get the value for the currentBreakpoints Use differents conditions to store the themes.

ResponsiveTheme.screen(
   conditionScreen: ConditionScreen(
     mobile: MyThemesApp(),
     tablet: MyThemesTablet(),
     desktop: MyThemesWeb(),
   ),
 )

Constructors

ResponsiveTheme.conditions({required List<ConditionBreakpoint<IThemeDataRule>>? changeWhen, IThemeDataRule? deafultTheme = const DefaultThemeDataRule()})
const
ResponsiveTheme.screen({required ConditionScreen<IThemeDataRule>? conditionScreen, IThemeDataRule? deafultTheme = const DefaultThemeDataRule()})
const

Properties

changeWhen List<ConditionBreakpoint<IThemeDataRule>>?
List of conditions using the class ConditionBreakpoint
final
conditionScreen ConditionScreen<IThemeDataRule>?
Conditions of screen using the class ConditionScreen
final
deafultTheme IThemeDataRule?
We can define a theme for default if there any condition that does'nt met If there is'nt a default theme thay will use DefaultThemeDataRule
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ConditionType?
The type of conditions that was invoked
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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