ListChangeType enum

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}
Inheritance
Available extensions

Values

add → const ListChangeType

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}
insert → const ListChangeType

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}
remove → const ListChangeType

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}
update → const ListChangeType

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}
clear → const ListChangeType

Represents the type of change that occurs in a List.

This enum is typically used when listening for changes in a List to determine what kind of operation was performed.

Example

void main() {
  // Suppose you have a reactive list
  List<String> items = ['apple', 'banana'];

  // Simulate a change in the list
  var changeType = ListChangeType.add;

  switch (changeType) {
    case ListChangeType.add:
      print('An item was added to the list.');
      break;
    case ListChangeType.remove:
      print('An item was removed from the list.');
      break;
    default:
      print('Another type of change occurred.');
  }
}

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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 setterinherited

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<ListChangeType>
A constant List of the values in this enum, in order of their declaration.