JavaClass constructor

JavaClass({
  1. String className = '',
  2. String? parentClass,
  3. List<String> generics = const [],
  4. List<Variable> publicFields = const [],
  5. List<Variable> privateFields = const [],
  6. List<Variable> fieldGettersAndSetters = const [],
  7. InjectCodeUnit? injectedJavaCodes,
  8. List<Method> methods = const [],
  9. bool isPublic = false,
  10. bool isInterface = false,
  11. bool isStatic = false,
  12. bool hasToMap = false,
  13. bool hasFromMap = false,
  14. int depth = 0,
})

Implementation

JavaClass(
    {this.className = '',
    this.parentClass,
    this.generics = const [],
    this.publicFields = const [],
    this.privateFields = const [],
    this.fieldGettersAndSetters = const [],
    this.injectedJavaCodes,
    this.methods = const [],
    this.isPublic = false,
    this.isInterface = false,
    this.isStatic = false,
    this.hasToMap = false,
    this.hasFromMap = false,
    int depth = 0})
    : assert(className.isNotEmpty),
      super(depth);