Dart Documentationinjectable_applicationInjectable

Injectable class

Annotation used to mark.

class Injectable {
 final Type type;
 final bool requestContext;

 const Injectable({this.type, this.requestContext: false});
}

Constructors

const Injectable({Type type, bool requestContext: false}) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const Injectable({this.type, this.requestContext: false});

Properties

final bool requestContext #

final bool requestContext

final Type type #

final Type type