This file contains hidden or 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() { | |
Pessoa p = Pessoa("Hernand"); | |
int a = 3; | |
int b = 2; | |
Calculadora calc = Calculadora(); | |
int c = Calculadora.soma(a, b); | |
print("Soma: $c"); | |
print("Soma: ${p.nome}"); | |
} |
This file contains hidden or 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() { | |
Carro c1 = Carro("Fusca"); | |
Carro c2 = Carro("Brasilia"); | |
Carro c3 = Carro("Chevete"); | |
//List<Carro> carros = List<Carro>(); | |
//carros.add(c1); | |
//carros.add(c2); | |
//carros.add(c3); | |
var carros = [c1, c2, c3]; |
This file contains hidden or 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() { | |
Carro c1 = Carro("Fusca"); | |
Carro c2 = Carro("Brasilia"); | |
Carro c3 = Carro("Chevete"); | |
final carros = {1:c1 ,2: c2}; | |
carros[3] = c3; | |
print ("Lista $carros"); |
This file contains hidden or 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() { | |
Carro c1 = Carro("Fusca"); | |
c1.acelerar(50); | |
c1.abastecer(50); | |
} | |
class Carro extends Automovel with Combustivel { | |
String nome; | |
Carro(this.nome); |
This file contains hidden or 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
{ | |
"_:component": "layout:row", | |
"children": [ | |
{ | |
"_:component": "layout:row", | |
"children": [{ | |
"_:component": "layout:text", | |
"properties": { | |
"text": "r" | |
} |
This file contains hidden or 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
{ | |
"_:component": "material:button", | |
"properties": { | |
"text": "This is an invalid json (extra comma right here)", | |
} | |
} |