NomoSnackBarThemeData.from constructor

NomoSnackBarThemeData.from(
  1. NomoSnackBarColorData colors,
  2. NomoSnackBarSizingData sizing,
  3. NomoSnackBarConstants constants
)

Implementation

factory NomoSnackBarThemeData.from(
  NomoSnackBarColorData colors,
  NomoSnackBarSizingData sizing,
  NomoSnackBarConstants constants,
) {
  return NomoSnackBarThemeData(
    backgroundColor: colors.backgroundColor,
    foregroundColor: colors.foregroundColor,
    elevation: colors.elevation,
    border: colors.border,
    height: sizing.height,
    margin: sizing.margin,
    spacing: sizing.spacing,
    borderRadius: constants.borderRadius,
  );
}