Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart constructor assert

NonNegativePoint(this.x, this.y)
    : assert(x >= 0),
      assert(y >= 0) {
  print('I just made a NonNegativePoint: ($x, $y)');
}
 
PREVIOUS NEXT
Tagged: #dart #constructor #assert
ADD COMMENT
Topic
Name
8+9 =