doc: update example to include missing imports

`dart:io` is necessary for `File`
`moor.dart` is necessary for `LazyDatabase`
This commit is contained in:
Abdullah Hilson 2020-04-13 13:46:11 +01:00 committed by GitHub
parent e89f1c924c
commit cfdb2f5cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ follows:
import 'package:moor_ffi/moor_ffi.dart'; import 'package:moor_ffi/moor_ffi.dart';
import 'package:path_provider/path_provider.dart'; import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'package:moor/moor.dart';
import 'dart:io';
LazyDatabase _openConnection() { LazyDatabase _openConnection() {
// the LazyDatabase util lets us find the right location for the file async. // the LazyDatabase util lets us find the right location for the file async.