This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final int iterations = 10; | |
int ant1 = 0; | |
int ant2 = 1; | |
final fibo = List.generate(iterations, (i){ | |
var temp = ant1; | |
ant1 = ant2; | |
ant2 = temp + ant2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var altura = 1.60; | |
var peso = 65.0; | |
var imc = calcularIMC(peso: peso, altura: altura); | |
print(classificarIMC(imc)); | |
} | |
double calcularIMC({required double peso, required double altura}) { | |
return peso / (altura * altura); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<x-forms::field-wrapper | |
:id="$getId()" | |
:label="$getLabel()" | |
:label-sr-only="$isLabelHidden()" | |
:helper-text="$getHelperText()" | |
:hint="$getHint()" | |
:hint-icon="$getHintIcon()" | |
:required="$isRequired()" | |
:state-path="$getStatePath()" | |
> |