ServiceGenerator class
Generates a service class.
Constructors
- ServiceGenerator.new({required String name, String output = 'output/services'})
- Creates a new instance of ServiceGenerator.
Properties
Methods
-
generate(
List< Map< functionList) → voidString, String> > -
getFunctionCode(
{required String name, String method = 'get', String url = 'ApiConstants.fetch(id)', bool isAuth = false}) → StringBuffer - Generates a function for the service.
-
getServiceCode(
List< Map< functions) → StringString, String> > - Generates the code for the service class.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited