void main(List<String> args) {
if (args.isNotEmpty && args.first == 'profile') {
final perfil = Profile(
nome: 'Túlio Garcia Diniz',
area: 'Full Stack',
trabalho: 'DinizSoft',
local: 'Dracena/SP',
linguagens: [
'Dart',
'JS/TS',
'C',
'C#',
'C++',
'Pascal (Delphi)',
'PHP',
],
);
print('$perfil');
} else {
print('Argument is required.');
}
}
class Profile {
final String nome;
final String area;
final String trabalho;
final String local;
final List<String> linguagens;
Profile({
required this.nome,
required this.area,
required this.trabalho,
required this.local,
required this.linguagens,
});
@override
String toString() => '(nome: $nome, area: $area, trabalho: $trabalho, '
'local: $local, linguagens: $linguagens)';
}
tuliogd Goto Github PK
Name: Túlio Garcia Diniz
Type: User
Company: @DinizSoft
Bio: Absolutely crazy full stack dev.
Location: Dracena/SP