retrieveValueByFieldName method

dynamic retrieveValueByFieldName(
  1. String name
)

Implementation

dynamic retrieveValueByFieldName(String name) {
  final field =
      fields.firstWhereOrNull((element) => element.variable.name == name);
  if (field == null) {
    Logger.printError('field is null');
    return null;
  }
  return Variable.getData(field.variable);
}