discontinuedPackage responsive_annotation has been discontinued.

ResponsiveConfig class

An annotation used to specify a class to generate responsive code for.

Annotations
  • @Target.new({TargetKind.classType})

Constructors

ResponsiveConfig({double? widescreenBreakpoint, double? desktopBreakpoint, double? laptopBreakpoint, double? tabletBreakpoint, double? mobileBreakpoint})
ResponsiveConfig is used to annotate classes that contains responsive fields. Default breakpoint values are:
const
ResponsiveConfig.fromJson(Map<String, dynamic> json)
Factory fromJson constructor for ResponsiveConfig.
factory

Properties

desktopBreakpoint → double?
Specifies custom breakpoint for ScreenType.desktop. If not specified, the default value is DefaultBreakpoints.desktop.
final
hashCode → int
The hash code for this object.
no setterinherited
laptopBreakpoint → double?
Specifies custom breakpoint for ScreenType.laptop. If not specified, the default value is DefaultBreakpoints.laptop.
final
mobileBreakpoint → double?
Specifies custom breakpoint for ScreenType.mobile. If not specified, the default value is DefaultBreakpoints.mobile.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tabletBreakpoint → double?
Specifies custom breakpoint for ScreenType.tablet. If not specified, the default value is DefaultBreakpoints.tablet.
final
widescreenBreakpoint → double?
Specifies custom breakpoint for ScreenType.widescreen. If not specified, the default value is DefaultBreakpoints.widescreen.
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