fromCode static method

SqliteUpdateKind? fromCode(
  1. int code
)

Attempts to extract a SqliteUpdateKind from the raw flags.

Implementation

static SqliteUpdateKind? fromCode(int code) {
  return switch (code) {
    SQLITE_INSERT => insert,
    SQLITE_UPDATE => update,
    SQLITE_DELETE => delete,
    _ => null,
  };
}