Rich text editor for Flutter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
737 B

import 'package:bloc/bloc.dart';
import 'package:flutter/material.dart' show ThemeMode;
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart' show HydratedMixin;
part 'settings_state.dart';
part 'settings_cubit.freezed.dart';
part 'settings_cubit.g.dart';
class SettingsCubit extends Cubit<SettingsState> with HydratedMixin {
SettingsCubit() : super(const SettingsState());
void updateSettings(SettingsState newSettingsState) {
emit(newSettingsState);
}
@override
SettingsState? fromJson(Map<String, dynamic> json) {
return SettingsState.fromJson(json);
}
@override
Map<String, dynamic>? toJson(SettingsState state) {
return state.toJson();
}
}