idlReqMethod top-level constant
String
const idlReqMethod
Implementation
const idlReqMethod = '''
/// [{{ methodName }}] defined in Candid
/// {{ didText }}
///
/// Dart IDL
/// [{{ idlName }}.{{ methodName }}] : IDL.Func(
/// <CType<dynamic>>[{{ idlReq }}],
/// <CType<dynamic>>[{{ idlRep }}],
/// <String>[{{ funcAnno }}],
/// )
///
Future<{{ returnType }}> {{ methodName }}(
CanisterActor actor,
{{# renderParams }}{{/ renderParams }}
) async {
final List<dynamic> dat = {{# renderParamsName }}{{/ renderParamsName }};
{{#hasReturn}}final dynamic resp = {{/hasReturn}} await actor.getFunc({{ idlName }}.{{ methodName }})!(dat);
{{# renderReturn }}{{/ renderReturn }}
}
''';