Libraries in Dart
Libraries are used to organize code into reusable components. Dart comes with a standard library that provides many useful classes and functions, but you can also create your own libraries.
library my_library;
import 'dart:math';
int getRandomInt(int min, int max) {
var random = Random();
return min + random.nextInt(max - min);
}
No comments:
Post a Comment