2

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';

2 Answers2

2

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).

0

I think there is no difference in importing method for both except the path I suggest that

kingpanda419
  • 121
  • 2