configure static method

void configure({
  1. Map<String, double>? customBreakpoints,
  2. double? mobileBreakpoint,
  3. double? tabletBreakpoint,
})

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;
  }
}