Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 为什么Future类在Dart/Flatter中被称为Future API?_Flutter_Dart_Future - Fatal编程技术网

Flutter 为什么Future类在Dart/Flatter中被称为Future API?

Flutter 为什么Future类在Dart/Flatter中被称为Future API?,flutter,dart,future,Flutter,Dart,Future,我知道什么是软件工程的API意义 但我不知道为什么Future类在Dart和Flatter中被称为Future API 我能知道为什么它被称为“未来API”吗?API只是指应用程序编程接口,并且是在许多不同环境中使用的编程世界中……它通常指的是作为程序员可以插入的一组函数,以与其他软件交互 要掌握的最简单最直接的API版本可能只是一个接口 在这种情况下,“Future API”(如果他们以这种方式引用它)只是定义了未来的特征,并说明了如何与未来交互。它基本上是一个定义,让您知道未来的类会带来什么

我知道什么是软件工程的API意义
但我不知道为什么Future类在Dart和Flatter中被称为Future API

我能知道为什么它被称为“未来API”吗?

API只是指应用程序编程接口,并且是在许多不同环境中使用的编程世界中……它通常指的是作为程序员可以插入的一组函数,以与其他软件交互

要掌握的最简单最直接的API版本可能只是一个接口


在这种情况下,“Future API”(如果他们以这种方式引用它)只是定义了未来的特征,并说明了如何与未来交互。它基本上是一个定义,让您知道未来的类会带来什么,以及您可以用它做什么。同样,类似Google Places API的东西定义了一组“函数”,您可以与这些函数进行交互,从而返回特定类型的数据。

您是否有提到这一点的链接?为什么它不是API?每个类都提供一个接口。接口是用来编程的,通常这类程序是应用程序,所以通常“接口”和“API”可以互换使用。