Remove Duplicate Import

This commit is contained in:
Unknown 2018-10-21 14:06:36 +02:00
parent cb9da3bc54
commit 0b5b1de454

View file

@ -1,6 +1,5 @@
import 'dart:html' as html;
import 'dart:math' as math;
import 'dart:math';
import 'package:rules_of_living/src/Grid.dart';
import 'package:rules_of_living/src/rules/GameOfLife.dart';
@ -20,8 +19,8 @@ class Simulation {
int _amount;
int _dispersal;
Point get gridSize => Point<int>(map.width, map.height);
void set gridSize(Point<int> value) {
math.Point get gridSize => math.Point<int>(map.width, map.height);
void set gridSize(math.Point<int> value) {
if (value.x <= 0 || value.y <= 0)
throw ArgumentError("grid size must not be smaller than 1");
map = Grid(value.x, value.y);