MermaidResponsiveConfig class
Responsive configuration for Mermaid diagrams
Constructors
- MermaidResponsiveConfig({double mobileBreakpoint = 600, double tabletBreakpoint = 1024, MermaidDeviceConfig mobileConfig = const MermaidDeviceConfig.mobile(), MermaidDeviceConfig tabletConfig = const MermaidDeviceConfig.tablet(), MermaidDeviceConfig desktopConfig = const MermaidDeviceConfig.desktop()})
-
Creates responsive config
const
Properties
- desktopConfig → MermaidDeviceConfig
-
Configuration for desktop devices
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mobileBreakpoint → double
-
Breakpoint for mobile devices
final
- mobileConfig → MermaidDeviceConfig
-
Configuration for mobile devices
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabletBreakpoint → double
-
Breakpoint for tablet devices
final
- tabletConfig → MermaidDeviceConfig
-
Configuration for tablet devices
final
Methods
-
getConfigForDevice(
DeviceType deviceType) → MermaidDeviceConfig - Gets the configuration for a device type
-
getConfigForWidth(
double width) → MermaidDeviceConfig - Gets the configuration for a given width
-
getDeviceType(
double width) → DeviceType - Gets the device type based on width
-
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
Static Methods
-
fromContext(
BuildContext context, [MermaidResponsiveConfig? config]) → MermaidDeviceConfig - Creates config from BuildContext