title: The function '$initGetIt' isn't defined while using injectable pub package
body: <p>I am trying to implement stacked architecture by following this video uploaded by FilledStacks.
  I encountered a problem while using injectable pub package
  <a href="https://pub.dev/packages/injectable" rel="nofollow noreferrer">https://pub.dev/packages/injectable</a></p>
  <p>My locator.dart class code is as follow</p>
  <pre><code>import 'package:get_it/get_it.dart';
  import 'package:injectable/injectable.dart';
  
  final locator = GetIt.instance;
  
  @injectableInit
  void setupLocator() =&gt; $initGetIt(locator);
  
  </code></pre>
  <p>on <code> $initGetIt(locator)</code> I'm getting this error</p>
  <pre><code>The function '$initGetIt' isn't defined.
  Try importing the library that defines '$initGetIt', correcting the name to the name of an existing function, or defining a function named 
  </code></pre>
  <p>Even though I am implementing package the way it is shown in the package documentation</p>
  <p><a href="https://www.youtube.com/watch?v=DO8le1W_HqQ&amp;t=914s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=DO8le1W_HqQ&amp;t=914s</a></p>