This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_app_hello_20_apr_2019/movie.dart'; | |
class CreatePage extends StatefulWidget with AnimationEagerListenerMixin { | |
CreatePage(); | |
@override | |
State<StatefulWidget> createState() { | |
return CreatePageState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
class Universe{ | |
String name; | |
Universe(); | |
factory Universe.fromJson(Map<String,dynamic> map){ | |
Universe u = Universe() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Universe{ | |
String name; | |
static Universe u = Universe.init(); | |
factory Universe(){ | |
return u; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' show Random,Point; | |
main(){ | |
int value = Random().nextInt(10); | |
print(value); // 0 ... 9 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' as MyMath; | |
main(){ | |
double value = MyMath.log(2); | |
print(value); // 0.6931471805599453 | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
main(){ | |
double value = log(2); | |
print(value); // 0.6931471805599453 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spacecraft{ | |
String name; | |
bool available; | |
Spacecraft({this.name,this.available=true}); | |
} | |
class Astronaut{ | |
String name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spacecraft{ | |
String name; | |
bool available; | |
Spacecraft(this.name,[this.available = true]); | |
} | |
class Astronaut{ | |
String name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spacecraft{ | |
String name; | |
bool available; | |
Spacecraft(this.name,this.available); | |
} | |
class Astronaut{ | |
String name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(){ | |
double a =1111; | |
double b =33; | |
int floor = a ~/ b; | |
// int floor = (a/b).toInt(); | |
print(floor); // 33 | |
} |