getColor static method

dynamic getColor(
  1. BuildContext context, {
  2. required String name,
})

Implementation

static getColor(BuildContext context, {required String name}){
  final themeCubit = context.watch<CustomThemeCubit>();
  return themeCubit.getColor(name);
}