flutter_rust_bridge 2.14.0-beta.2

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::platform_types::DartAbi;

/// Use this type to represent Dart `dynamic` values
pub type DartDynamic = DartAbi;

#[cfg(test)]
mod tests {
    /// Confirms that dynamic values preserve the platform ABI type.
    #[test]
    fn test_dart_dynamic_is_platform_abi() {
        fn accepts_dynamic(_: super::DartDynamic) {}

        let _: fn(crate::platform_types::DartAbi) = accepts_dynamic;
    }
}