$getProperty method
Método que permite acceder a las propiedades y métodos de la instancia envuelta desde el código interpretado.
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
if (identifier == 'obtenerEsquemaSegunKey') {
return $Function((runtime, target, args) {
final result = $value.obtenerEsquemaSegunKey(
$Map.wrap(args[0]!.$value),
args[1]!.$value,
);
return $Map.wrap(result);
});
}
if (identifier == 'determinaValorCampo') {
return $Function((runtime, target, args) {
final result = $value.determinaValorCampo(
$Map.wrap(args[0]!.$value),
$List.wrap([...args[1]!.$value]),
);
return result ?? '';
});
}
if (identifier == 'doubleTryParse') {
return $Function((runtime, target, args) {
final result = $value.doubleTryParse(args[0]!.$value);
return $double(result);
});
}
if (identifier == 'intTryParse') {
return $Function((runtime, target, args) {
final result = $value.intTryParse(args[0]!.$value);
return $int(result);
});
}
if (identifier == 'boolTryParse') {
return $Function((runtime, target, args) {
final result = $value.boolTryParse(args[0]!.$value);
return $bool(result);
});
}
if (identifier == 'redondeoCampoDecimal') {
return $Function((runtime, target, args) {
final result = $value.redondeoCampoDecimal(
args[0]!.$value,
args[1]!.$value,
);
return $double(result);
});
}
if (identifier == 'getCreadoElPaquete') {
return $Function((runtime, target, args) {
final result = $value.getCreadoElPaquete();
return $String(result);
});
}
return null;
}