0

I want to pass the instance of a class this when constructing my class.

class A implements B {

   final C _c = ConcreteClass(b: this);
}

It looks like this cannot be done because this doesn't exist yet. I usually do this in other languages like Java and Kotlin. Any idea how to do this in Dart?

I tried to do it in the constructor but it is the same.

J_Strauton
  • 2,270
  • 3
  • 28
  • 70

0 Answers0