pub struct DartOptions {
pub null_safety: bool,
pub just_types: bool,
pub coders_in_class: bool,
pub from_map: bool,
pub required_props: bool,
pub copy_with: bool,
pub use_freezed: bool,
pub use_hive: bool,
pub use_json_annotation: bool,
pub part_name: String,
}
Fields§
§null_safety: bool
Null Safety
just_types: bool
Types only
coders_in_class: bool
Put encoder & decoder in Class
from_map: bool
Use method names fromMap() & toMap()
required_props: bool
Make all properties required
copy_with: bool
Generate CopyWith method
use_freezed: bool
Generate class definitions with @freezed compatibility
use_hive: bool
Generate annotations for Hive type adapters
use_json_annotation: bool
Generate annotations for json_serializable
part_name: String
Use this name in part
directive
Trait Implementations§
Source§impl Clone for DartOptions
impl Clone for DartOptions
Source§fn clone(&self) -> DartOptions
fn clone(&self) -> DartOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DartOptions
impl Debug for DartOptions
Source§impl Default for DartOptions
impl Default for DartOptions
Source§impl Hash for DartOptions
impl Hash for DartOptions
Source§impl PartialEq for DartOptions
impl PartialEq for DartOptions
impl Eq for DartOptions
impl StructuralPartialEq for DartOptions
Auto Trait Implementations§
impl Freeze for DartOptions
impl RefUnwindSafe for DartOptions
impl Send for DartOptions
impl Sync for DartOptions
impl Unpin for DartOptions
impl UnwindSafe for DartOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more