NomoElevationThemeData.from constructor

NomoElevationThemeData.from(
  1. NomoElevationColorData colors,
  2. NomoElevationSizingData sizing,
  3. NomoElevationConstants constants
)

Implementation

factory NomoElevationThemeData.from(
  NomoElevationColorData colors,
  NomoElevationSizingData sizing,
  NomoElevationConstants constants,
) {
  return NomoElevationThemeData(
    backgroundColor: colors.backgroundColor,
    shadowColor: colors.shadowColor,
    elevation: sizing.elevation,
    animationDuration: constants.animationDuration,
    animationCurve: constants.animationCurve,
  );
}