Skip to content

Commit

Permalink
chore: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Apr 7, 2024
1 parent d34c33d commit c789971
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ pub struct OpaqueStructWithDartCodeTwinRustAsync;

impl OpaqueStructWithDartCodeTwinRustAsync {
pub async fn normal_method_twin_rust_async(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ pub struct OpaqueStructWithDartCodeTwinRustAsyncSse;
impl OpaqueStructWithDartCodeTwinRustAsyncSse {
#[flutter_rust_bridge::frb(serialize)]
pub async fn normal_method_twin_rust_async_sse(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ pub struct OpaqueStructWithDartCodeTwinSse;
impl OpaqueStructWithDartCodeTwinSse {
#[flutter_rust_bridge::frb(serialize)]
pub fn normal_method_twin_sse(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ pub struct OpaqueStructWithDartCodeTwinSync;
impl OpaqueStructWithDartCodeTwinSync {
#[flutter_rust_bridge::frb(sync)]
pub fn normal_method_twin_sync(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ impl OpaqueStructWithDartCodeTwinSyncSse {
#[flutter_rust_bridge::frb(serialize)]
#[flutter_rust_bridge::frb(sync)]
pub fn normal_method_twin_sync_sse(&self) -> i32 {
self.a * 2
100
}
}
2 changes: 1 addition & 1 deletion frb_example/pure_dart_pde/rust/src/api/dart_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ pub struct OpaqueStructWithDartCodeTwinNormal;

impl OpaqueStructWithDartCodeTwinNormal {
pub fn normal_method_twin_normal(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ pub struct OpaqueStructWithDartCodeTwinRustAsync;

impl OpaqueStructWithDartCodeTwinRustAsync {
pub async fn normal_method_twin_rust_async(&self) -> i32 {
self.a * 2
100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ pub struct OpaqueStructWithDartCodeTwinSync;
impl OpaqueStructWithDartCodeTwinSync {
#[flutter_rust_bridge::frb(sync)]
pub fn normal_method_twin_sync(&self) -> i32 {
self.a * 2
100
}
}

0 comments on commit c789971

Please sign in to comment.