Name class

Constructors

Name({String? title, String? first, String? last})
A constructor that takes in the parameters and assigns them to the variables.
const
Name.fromJson(String source)
Name.fromMap is a factory constructor that takes a Map<String, dynamic> and returns a Name object.
factory
Name.fromMap(Map<String, dynamic> map)
It creates a new Name object from a map.
factory

Properties

first String?
final
hashCode int
The hash code for this object.
no setterinherited
last String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
title String?
Declaring the variables that will be used in the class.
final

Methods

copyWith({String? title, String? first, String? last}) Name
If any of the parameters are passed in, use them, otherwise use the current value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
It converts the object to a map.
toMap() Map<String, dynamic>
It returns a map of the object's properties
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited