Rank 2: Process
I am calling a cloud function from the newest Flutter SDK 20.2.1with the xasync: false flag and get the result, but the execution.status is not a String and the ExecutionStatus Enum seems to not be importable:
final execution = await _functions.createExecution(
functionId: dotenv.get(
'APPWRITE_FUNC_CREATE_RESOURCES',
fallback: 'FUNCTION_ID not found',
),
body: json.encode(<String, dynamic>{
'email': email,
'password': password,
'name': name,
'storage': advanced,
}),
xasync: false,
);
debugPrint(
'Function execution status: ${execution.status} (type: ${execution.status.runtimeType})');
// debugPrint: Function execution status: ExecutionStatus.completed (type: ExecutionStatus)
if (execution.status == 'completed') {
// this is never reached because of a type mismatch
Am I doing something wrong here (I updated my flutter sdk version yesterday) or is this an issue? I tried importing it directly with import 'package:appwrite/enums.dart' as enums; but that didn't work as well.