addTextSlide static method
- dynamic ref
Implementation
static void addTextSlide(WidgetRef ref) {
final clr = getRandomElement(Colors.primaries);
NewsSlideItem textSlide = NewsSlideItem(
type: NewsSlideType.text,
text: '',
backgroundColor: clr,
);
ref.read(newsStateProvider.notifier).addSlide(textSlide);
}