Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

UUID.get() => UUID.createUuid()

  • Loading branch information...
commit 646ceef820b196cab1866fe64a7f92fe7b32e405 1 parent 2af54c0
Mathieu Lorber authored
2  labs/architecture-examples/dart/dart/TodoApp.dart
@@ -43,7 +43,7 @@ class TodoApp {
43 43
       if(e.keyIdentifier == KeyName.ENTER) {
44 44
         String title = newTodoElement.value.trim();
45 45
         if(title != '') {
46  
-          addTodo(new Todo(UUID.get(), title));
  46
+          addTodo(new Todo(UUID.createUuid(), title));
47 47
           newTodoElement.value = '';
48 48
           updateFooterDisplay();
49 49
           save();
2  labs/architecture-examples/dart/dart/app.dart
@@ -32,7 +32,7 @@ class Todo {
32 32
 class UUID {
33 33
   static Random random = new Random();
34 34
 
35  
-  static String get() {
  35
+  static String createUuid() {
36 36
     return "${S4()}${S4()}-${S4()}-${S4()}-${S4()}-${S4()}${S4()}${S4()}";
37 37
   }
38 38
   

0 notes on commit 646ceef

Please sign in to comment.
Something went wrong with that request. Please try again.