update method

Future<bool> update(
  1. Map<String, dynamic> attributes
)
inherited

Update the model in the database.

Implementation

Future<bool> update(Map<String, dynamic> attributes) async {
  if (!exists) return false;

  if (this is HasAttributes) {
    (this as HasAttributes).fill(attributes);
  }

  return save();
}