Using Named parameters inside Custom Actions

Custom Code

I see in dart we can use named parameters to call a function :

https://medium.com/@codingfriday.dev/function-parameters-in-dart-1e84110a163f

I try to replicate this in flutterflow.

This usual code is working but don't accepts named parameters :

Future<void> myTest(
  String message,
  int durationSec,
) async {
// The code
}
myTest("hello", 2);

But this code with braces tells me "Failed to process parameters" :

Future<void> myTest({
  String message,
  int durationSec,}
) async {
// The code
}

myTest(message:"hello", durationSec: 2);

Why ? Is there a special way to do it with flutterflow ?

Thank you

What have you tried so far?

I have tried the above code

Did you check FlutterFlow's Documentation for this topic?
No
4