phone_feature 0.0.1 copy "phone_feature: ^0.0.1" to clipboard
phone_feature: ^0.0.1 copied to clipboard

My Core Components Archive for use My All Project

Welcome #

My Contact Info #

Mail Address : polatcelikhamza94@gmail.com #

My GitHub : https://github.com/HamzaPolat68 #

<-----------------------------> #

Installing #

Tr: Paketimizi projenize eklemek için aşağıdaki adımları takip edebilirsiniz.
En: You can follow the steps below to add our package to your project.

Code Sample: Base Model #

What does it do: Base Model Service Example 
Ne işe yarar : Base Model Servis Örneği

     //En: This code is avialable in the package. You just need to call.
     //TR: Bu kod paketin içerisinde mevcuttur. Sadece çağırmanız yeterlidir.
     abstract class BaseModel<T> {
        Map<String, dynamic> toJson();
        T fromJson(Map<String, dynamic> json);
    }

    //-------[USAGE]-----------
    //-------[KULLANIM]--------
    class Example Model extends BaseModel<Extends>{
        //....
        //... 

    }
    //------------[Sample]----------------
    class NoteModel extends BaseModel<NoteModel>{
        String? note;
        String title;

        NoteModel({this.note, this.title});

        @override
        NoteModel fromJson(Map<String.dynamic>json){
            return NoteModel(
                title: json['title'],
                note: json['note'],
            );
        }

        @override 
        Map<String, dynamic> toJson(){
            return{
                'note': note,
                'title' title,
            }
        }
    }

1
likes
130
points
20
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

My Core Components Archive for use My All Project

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on phone_feature