can somebody explain me the actual difference between these two scenarios-
import 'package:app/src/Library/model/AllDocs.dart';
and
import 'model/AllDocs.dart';
or
import '../../fileName.dart';
can somebody explain me the actual difference between these two scenarios-
import 'package:app/src/Library/model/AllDocs.dart';
and
import 'model/AllDocs.dart';
or
import '../../fileName.dart';
There are no performance differences or anything like that.
But it's better to use package paths because you won't need to edit all of your imports in case you move your file to another location (as they're not relative paths).
I think there is no difference in importing method for both except the path I suggest that