copyWith method

VentasTheme copyWith({
  1. Color? primaryColor,
  2. TextTheme? textTheme,
  3. Size? size,
})

Implementation

VentasTheme copyWith({
  Color? primaryColor,
  TextTheme? textTheme,
  Size? size,
  // Add more properties to customize as needed.
}) {
  return VentasTheme._(
    themeData.copyWith(
      primaryColor: primaryColor ?? themeData.primaryColor,
      textTheme: textTheme ?? themeData.textTheme,
    ),
  );
}