Funciones Parámetros Opcionales StringBuffer (Dart)
void main() { //llamamos a la Funcion y le pasamos los parametros en este caso esta vaciotextocache('Pedro','Montes'); } //funcion con retorno cargada con dos String o Parametros Opcionalesvoid textocache([ String Nombre='Michael',String Apellido='Sayman']){ //Varieble StringBuffer var textocache = StringBuffer('Es un Placer '); textocache.write(' $Nombre'); textocache.write(' $Apellido'); print(textocache.toString()); }
Comments
Post a Comment