setCategory method

void setCategory(
  1. Category category
)

Sets the selected category and notifies listeners.

This will cause the emoji picker to navigate to the specified category if it's currently being used by an EmojiPicker widget.

Implementation

void setCategory(Category category) {
  if (_currentCategory != category) {
    _currentCategory = category;
    notifyListeners();
  }
}