toggle method

Future<Map<String, dynamic>> toggle(
  1. RequestContext ctx
)

Implementation

Future<Map<String, dynamic>> toggle(RequestContext ctx) async {
  return (await _tasks.toggle(ctx.param('id')!)).toJson();
}