reorderFields method
Implementation
void reorderFields(int oldIndex, int newIndex) {
if (newIndex > oldIndex) {
newIndex -= 1;
}
final fieldName = fieldOrder.removeAt(oldIndex);
fieldOrder.insert(newIndex, fieldName);
notifyFieldValue(fieldName, getValue());
}