init static method

DimenInitializer init({
  1. DeviceConfig? deviceConfig,
  2. DeviceType? deviceType,
  3. Iterable<DimenConfigData<Dimen>> dimens = const [],
  4. DimenConfig<ConstraintDimen> appbar = DefaultConfigs.appbar,
  5. DimenConfig<ConstraintDimen> bottom = DefaultConfigs.bottom,
  6. DimenConfig<ConstraintDimen> button = DefaultConfigs.button,
  7. DimenConfig<ConstraintDimen> image = DefaultConfigs.image,
  8. DimenConfig<ConstraintDimen> scaffold = DefaultConfigs.scaffold,
  9. DimenConfig<SizeDimen> avatar = DefaultConfigs.avatar,
  10. DimenConfig<SizeDimen> corner = DefaultConfigs.corner,
  11. DimenConfig<SizeDimen> divider = DefaultConfigs.divider,
  12. DimenConfig<SizeDimen> fontSize = DefaultConfigs.fontSize,
  13. DimenConfig<SizeDimen> icon = DefaultConfigs.icon,
  14. DimenConfig<SizeDimen> indicator = DefaultConfigs.indicator,
  15. DimenConfig<SizeDimen> margin = DefaultConfigs.margin,
  16. DimenConfig<SizeDimen> padding = DefaultConfigs.padding,
  17. DimenConfig<SizeDimen> size = DefaultConfigs.size,
  18. DimenConfig<SizeDimen> spacing = DefaultConfigs.spacing,
  19. DimenConfig<SizeDimen> stroke = DefaultConfigs.stroke,
  20. 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;
}