updateStateContacts function

void updateStateContacts({
  1. required BuildContext context,
  2. required StateContactType type,
  3. required String? value,
})

Used in Profile to update state when contact details are updated

Implementation

void updateStateContacts({
  required BuildContext context,
  required StateContactType type,
  required String? value,
}) {
  StoreProvider.dispatch<CoreState>(
      context, UpdateStateContactsAction(type: type, value: value ?? ''));
}