init static method
DimenInitializer
init({
- DeviceConfig? deviceConfig,
- DeviceType? deviceType,
- Iterable<
DimenConfigData< dimens = const [],Dimen> > - DimenConfig<
ConstraintDimen> appbar = DefaultConfigs.appbar, - DimenConfig<
ConstraintDimen> bottom = DefaultConfigs.bottom, - DimenConfig<
ConstraintDimen> button = DefaultConfigs.button, - DimenConfig<
ConstraintDimen> image = DefaultConfigs.image, - DimenConfig<
ConstraintDimen> scaffold = DefaultConfigs.scaffold, - DimenConfig<
SizeDimen> avatar = DefaultConfigs.avatar, - DimenConfig<
SizeDimen> corner = DefaultConfigs.corner, - DimenConfig<
SizeDimen> divider = DefaultConfigs.divider, - DimenConfig<
SizeDimen> fontSize = DefaultConfigs.fontSize, - DimenConfig<
SizeDimen> icon = DefaultConfigs.icon, - DimenConfig<
SizeDimen> indicator = DefaultConfigs.indicator, - DimenConfig<
SizeDimen> logo = DefaultConfigs.logo, - DimenConfig<
SizeDimen> margin = DefaultConfigs.margin, - DimenConfig<
SizeDimen> padding = DefaultConfigs.padding, - DimenConfig<
SizeDimen> size = DefaultConfigs.size, - DimenConfig<
SizeDimen> spacing = DefaultConfigs.spacing, - DimenConfig<
SizeDimen> stroke = DefaultConfigs.stroke, - DimenConfig<
WeightDimen> fontWeight = DefaultConfigs.fontWeight,
Implementation
static DimenInitializer init({
// CONFIGS
DeviceConfig? deviceConfig,
DeviceType? deviceType,
Iterable<DimenConfigData> dimens = const [],
// CONSTRAINT DIMENS
DimenConfig<ConstraintDimen> appbar = DefaultConfigs.appbar,
DimenConfig<ConstraintDimen> bottom = DefaultConfigs.bottom,
DimenConfig<ConstraintDimen> button = DefaultConfigs.button,
DimenConfig<ConstraintDimen> image = DefaultConfigs.image,
DimenConfig<ConstraintDimen> scaffold = DefaultConfigs.scaffold,
// SIZE DIMENS
DimenConfig<SizeDimen> avatar = DefaultConfigs.avatar,
DimenConfig<SizeDimen> corner = DefaultConfigs.corner,
DimenConfig<SizeDimen> divider = DefaultConfigs.divider,
DimenConfig<SizeDimen> fontSize = DefaultConfigs.fontSize,
DimenConfig<SizeDimen> icon = DefaultConfigs.icon,
DimenConfig<SizeDimen> indicator = DefaultConfigs.indicator,
DimenConfig<SizeDimen> logo = DefaultConfigs.logo,
DimenConfig<SizeDimen> margin = DefaultConfigs.margin,
DimenConfig<SizeDimen> padding = DefaultConfigs.padding,
DimenConfig<SizeDimen> size = DefaultConfigs.size,
DimenConfig<SizeDimen> spacing = DefaultConfigs.spacing,
DimenConfig<SizeDimen> stroke = DefaultConfigs.stroke,
// WEIGHT DIMENS
DimenConfig<WeightDimen> fontWeight = DefaultConfigs.fontWeight,
}) {
_i = DimenInitializer(
// CONFIGS
deviceType: deviceType,
deviceConfig: deviceConfig,
dimens: dimens,
// CONSTRAINT DIMENS
appbar: appbar,
bottom: bottom,
button: button,
image: image,
scaffold: scaffold,
// SIZE DIMENS
avatar: avatar,
corner: corner,
divider: divider,
fontSize: fontSize,
icon: icon,
indicator: indicator,
logo: logo,
margin: margin,
padding: padding,
size: size,
spacing: spacing,
stroke: stroke,
// WEIGHT DIMENS
fontWeight: fontWeight,
);
return i;
}