getScaffoldCompactDrawerWidth static method

double getScaffoldCompactDrawerWidth(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static double getScaffoldCompactDrawerWidth(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return override?.scaffoldCompactDrawerWidth ??
      style?.scaffoldCompactDrawerWidth ??
      getStyleByType(UpConfig.of(context).theme, colorType)
          .scaffoldCompactDrawerWidth ??
      UpConstants.kDefaultStyleSideBarCompactViewWith;
}