Back to Flutter Rust Bridge

Overview

website/docs/guides/functions/overview.md

2.12.0371 B
Original Source

Overview

Surely, functions are supported. For example,

rust
fn f(a: String, b: Vec<String>) -> MyStruct { ... }

can be called from Dart, without manual intervention:

dart
print(f(a: 'Hello', b: ['Tom']));

In the following sections, more advanced functionalities related to functions will be introduced, such as methods, properties, constructors, etc.