synapp_functions_helper 1.0.0 synapp_functions_helper: ^1.0.0 copied to clipboard
A helper with many helpful functions for developing appwrite functions
example/synapp_functions_helper_example.dart
import 'package:synapp_functions_helper/synapp_functions_helper.dart';
Future<FunctionDatasResult> callback(FunctionContext context) async {
print(context);
return FunctionDatasResult(
datas: {
'phone': context.payload['phone'],
},
);
}
void start(final req, final res) {
functionWrapper(
req,
res,
Services.values,
['phone'],
callback,
requiredVariables: [],
);
}