Fixed typo. j doesn't exist. The variable is p.

The path library has been imported as p not j.
This commit is contained in:
Dhiman Seal 2020-11-04 13:11:34 +05:30 committed by GitHub
parent e29fcf93f7
commit 51283c8f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ import 'package:path/path.dart' as p;
LazyDatabase(() async { LazyDatabase(() async {
final dbFolder = await getDatabasesPath(); final dbFolder = await getDatabasesPath();
final file = File(j.join(dbFolder, 'db.sqlite')); final file = File(p.join(dbFolder, 'db.sqlite'));
return VmDatabase(file); return VmDatabase(file);
}) })
``` ```
@ -163,4 +163,4 @@ Future<List<Coordinate>> findNearby(Coordinate center, int radius) {
``` ```
Aller the other functions are available under a similar name (`sqlSin`, `sqlCos`, `sqlAtan` and so on). Aller the other functions are available under a similar name (`sqlSin`, `sqlCos`, `sqlAtan` and so on).
They have that `sql` prefix to avoid clashes with `dart:math`. They have that `sql` prefix to avoid clashes with `dart:math`.