configure static method
void
configure({})
Initialize breakpoint configuration Call this method before using ResponsiveMedia.init() or pass these values directly to ResponsiveMedia.init()
Implementation
static void configure({
Map<String, double>? customBreakpoints,
double? mobileBreakpoint,
double? tabletBreakpoint,
}) {
if (customBreakpoints != null) {
ResponsiveMediaBreakpointConfig.customBreakpoints = customBreakpoints;
}
if (mobileBreakpoint != null) {
ResponsiveMediaBreakpointConfig.mobileBreakpoint = mobileBreakpoint;
}
if (tabletBreakpoint != null) {
ResponsiveMediaBreakpointConfig.tabletBreakpoint = tabletBreakpoint;
}
}