NomoCardThemeData.from constructor

NomoCardThemeData.from(
  1. NomoCardColorData colors,
  2. NomoCardSizingData sizing,
  3. NomoCardConstants constants
)

Implementation

factory NomoCardThemeData.from(
  NomoCardColorData colors,
  NomoCardSizingData sizing,
  NomoCardConstants constants,
) {
  return NomoCardThemeData(
    shadowColor: colors.shadowColor,
    border: colors.border,
    backgroundColor: colors.backgroundColor,
    elevation: sizing.elevation,
    offset: sizing.offset,
    borderRadius: sizing.borderRadius,
    padding: sizing.padding,
    margin: sizing.margin,
  );
}