Taxi Booking in Flutter - LocationModel dart file

 Create a file named as 'locationmodel.dart' in lib -> models folder and paste following code:


Create a Taxi Booking Project in flutter

Please, support my blog by clicking on our sponsors ad!



import 'package:myfirstproject/models/AreaSpotModel.dart';

class LocationModel
{
  late final String Name;
  late final String Img ;
  late final String Distance;
  late final String Rate;
  late final String Address;
  late final String Spot1;
  late final String Spot2;
  LocationModel({
     required this.Name,required this.Img,required this.Distance, required this.Rate, required this.Address, required this.Spot1,required this.Spot2});
}
Go to Main project

Comments

Popular posts from this blog

Push Notifications in .NET MAUI: A Comprehensive Guide

Explore the UI libraries available for .NET MAUI at no cost.

Push Notification using Firebase in xamarin form (Android and IOS)