toForeignKeyAction method

ForeignKeyAction? toForeignKeyAction()

get the ForeignKeyAction this enum represents, or the result of null if the enum did not contain a valid value

Implementation

ForeignKeyAction? toForeignKeyAction() {
  final enumIndex = getField('index')?.toIntValue();
  return enumIndex != null ? ForeignKeyAction.values[enumIndex] : null;
}