Flutter app background use of the compute function
491
You need to import the foundation package. Put this in the beginning of the file
import 'package:flutter/foundation.dart';
Author by
Aderbal Nunes
Updated on December 06, 2022Comments
-
Aderbal Nunes over 1 year
I'm learning Flutter and in my first app I try to use http to fetch a list of users. When I try to parse json response data using 'compute' function, my code broken.
"The function 'compute' ins't defined"
I have no idea what's happening.
-
Aderbal Nunes over 5 yearsI can not believe I forgot that. Thanks.