# MapChangeType enum

Represents the type of change that occurs in a `Map`.

This enum is commonly used in state management or data observation scenarios to determine what kind of update was performed on a `Map`.

### Example

    void main() {
      // Suppose you have a reactive map
      Map<String, int> scores = {'Alice': 10, 'Bob': 20};

      // Simulate a change in the map
      var changeType = MapChangeType.put;

      switch (changeType) {
        case MapChangeType.put:
          print('A key-value pair was added or updated.');
          break;
        case MapChangeType.remove:
          print('A key-value pair was removed.');
          break;
        case MapChangeType.clear:
          print('The map was cleared.');
          break;
      }
    }

Inheritance
  - Object
  - Enum
  - MapChangeType
Available extensions
  - EnumName

## Values

put → const MapChangeType

  Represents the type of change that occurs in a `Map`.

  This enum is commonly used in state management or data observation scenarios to determine what kind of update was performed on a `Map`.

  ### Example

      void main() {
        // Suppose you have a reactive map
        Map<String, int> scores = {'Alice': 10, 'Bob': 20};

        // Simulate a change in the map
        var changeType = MapChangeType.put;

        switch (changeType) {
          case MapChangeType.put:
            print('A key-value pair was added or updated.');
            break;
          case MapChangeType.remove:
            print('A key-value pair was removed.');
            break;
          case MapChangeType.clear:
            print('The map was cleared.');
            break;
        }
      }

remove → const MapChangeType

  Represents the type of change that occurs in a `Map`.

  This enum is commonly used in state management or data observation scenarios to determine what kind of update was performed on a `Map`.

  ### Example

      void main() {
        // Suppose you have a reactive map
        Map<String, int> scores = {'Alice': 10, 'Bob': 20};

        // Simulate a change in the map
        var changeType = MapChangeType.put;

        switch (changeType) {
          case MapChangeType.put:
            print('A key-value pair was added or updated.');
            break;
          case MapChangeType.remove:
            print('A key-value pair was removed.');
            break;
          case MapChangeType.clear:
            print('The map was cleared.');
            break;
        }
      }

clear → const MapChangeType

  Represents the type of change that occurs in a `Map`.

  This enum is commonly used in state management or data observation scenarios to determine what kind of update was performed on a `Map`.

  ### Example

      void main() {
        // Suppose you have a reactive map
        Map<String, int> scores = {'Alice': 10, 'Bob': 20};

        // Simulate a change in the map
        var changeType = MapChangeType.put;

        switch (changeType) {
          case MapChangeType.put:
            print('A key-value pair was added or updated.');
            break;
          case MapChangeType.remove:
            print('A key-value pair was removed.');
            break;
          case MapChangeType.clear:
            print('The map was cleared.');
            break;
        }
      }

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
index → int
  A numeric identifier for the enumerated value.
  no setter inherited
name → String

  Available on Enum, provided by the EnumName extension

  The name of the enum value.
  no setter
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited

## Constants

values → const List<MapChangeType>
  A constant List of the values in this enum, in order of their declaration.