synapp_functions_helper 1.0.12 synapp_functions_helper: ^1.0.12 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'],
},
);
}
Future<void> start(final req, final res) {
return functionWrapper(
req,
res,
Services.values,
['phone'],
callback,
requiredVariables: [],
);
}