ServiceGenerator class
Generates a service class.
Constructors
- ServiceGenerator(String name)
- Creates a new instance of ServiceGenerator.
Properties
Methods
-
generate(
List< String> functionList) → void - Generates the service file.
-
getFunctionCode(
{required String name, String method = 'get', String url = 'ApiConstants.fetch(id)', bool isAuth = false, bool isDebug = true}) → StringBuffer - Generates a function for the service.
-
getServiceCode(
List< String> functions) → 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