Function bodies 338 total
GetPptyStruct class · dart · L9-L136 (128 LOC)app/lib/backend/schema/structs/get_ppty_struct.dart
class GetPptyStruct extends FFFirebaseStruct {
GetPptyStruct({
int? resultsPerPage,
int? totalPages,
int? totalResultCount,
int? currentPage,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _resultsPerPage = resultsPerPage,
_totalPages = totalPages,
_totalResultCount = totalResultCount,
_currentPage = currentPage,
super(firestoreUtilData);
// "resultsPerPage" field.
int? _resultsPerPage;
int get resultsPerPage => _resultsPerPage ?? 0;
set resultsPerPage(int? val) => _resultsPerPage = val;
void incrementResultsPerPage(int amount) =>
resultsPerPage = resultsPerPage + amount;
bool hasResultsPerPage() => _resultsPerPage != null;
// "totalPages" field.
int? _totalPages;
int get totalPages => _totalPages ?? 0;
set totalPages(int? val) => _totalPages = val;
void incrementTotalPages(int amount) => totalPages = totalPages + amount;
bool hasTotalPages() => _totalPages != null;
//HoaStruct class · dart · L9-L62 (54 LOC)app/lib/backend/schema/structs/hoa_struct.dart
class HoaStruct extends FFFirebaseStruct {
HoaStruct({
int? level,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
static HoaStruct fromMap(Map<String, dynamic> data) => HoaStruct(
level: castToType<int>(data['level']),
);
static HoaStruct? maybeFromMap(dynamic data) =>
data is Map ? HoaStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => {
'level': _level,
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
'level': serializeParam(
_level,
ParamType.int,
),
}.withoutNulls;
static HoaStruct fromSerializableMap(Map<String, dynamic> data) => HoaStruct(
IrrAnalysisStruct class · dart · L11-L244 (234 LOC)app/lib/backend/schema/structs/irr_analysis_struct.dart
class IrrAnalysisStruct extends FFFirebaseStruct {
IrrAnalysisStruct({
double? irr,
List<int>? cashFlows,
int? initialInvestment,
double? totalCarryingCosts,
int? finalCashFlow,
int? holdingPeriodYears,
int? totalMonths,
String? method,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _irr = irr,
_cashFlows = cashFlows,
_initialInvestment = initialInvestment,
_totalCarryingCosts = totalCarryingCosts,
_finalCashFlow = finalCashFlow,
_holdingPeriodYears = holdingPeriodYears,
_totalMonths = totalMonths,
_method = method,
super(firestoreUtilData);
// "irr" field.
double? _irr;
double get irr => _irr ?? 0.0;
set irr(double? val) => _irr = val;
void incrementIrr(double amount) => irr = irr + amount;
bool hasIrr() => _irr != null;
// "cashFlows" field.
List<int>? _cashFlows;
List<int> get cashFlows => _cashFlows ?? const [];
set cashFlows(List<iKeyFactsStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/key_facts_struct.dart
class KeyFactsStruct extends FFFirebaseStruct {
KeyFactsStruct({
String? description,
int? rank,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _description = description,
_rank = rank,
super(firestoreUtilData);
// "description" field.
String? _description;
String get description => _description ?? '';
set description(String? val) => _description = val;
bool hasDescription() => _description != null;
// "rank" field.
int? _rank;
int get rank => _rank ?? 0;
set rank(int? val) => _rank = val;
void incrementRank(int amount) => rank = rank + amount;
bool hasRank() => _rank != null;
static KeyFactsStruct fromMap(Map<String, dynamic> data) => KeyFactsStruct(
description: data['description'] as String?,
rank: castToType<int>(data['rank']),
);
static KeyFactsStruct? maybeFromMap(dynamic data) =>
data is Map ? KeyFactsStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<StrLatlngStruct class · dart · L9-L87 (79 LOC)app/lib/backend/schema/structs/latlng_struct.dart
class LatlngStruct extends FFFirebaseStruct {
LatlngStruct({
double? latitude,
double? longitude,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _latitude = latitude,
_longitude = longitude,
super(firestoreUtilData);
// "latitude" field.
double? _latitude;
double get latitude => _latitude ?? 0.0;
set latitude(double? val) => _latitude = val;
void incrementLatitude(double amount) => latitude = latitude + amount;
bool hasLatitude() => _latitude != null;
// "longitude" field.
double? _longitude;
double get longitude => _longitude ?? 0.0;
set longitude(double? val) => _longitude = val;
void incrementLongitude(double amount) => longitude = longitude + amount;
bool hasLongitude() => _longitude != null;
static LatlngStruct fromMap(Map<String, dynamic> data) => LatlngStruct(
latitude: castToType<double>(data['latitude']),
longitude: castToType<double>(data['longitude']),
);
static LatLongStruct class · dart · L10-L69 (60 LOC)app/lib/backend/schema/structs/lat_long_struct.dart
class LatLongStruct extends FFFirebaseStruct {
LatLongStruct({
ValueStruct? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _value = value,
super(firestoreUtilData);
// "value" field.
ValueStruct? _value;
ValueStruct get value => _value ?? ValueStruct();
set value(ValueStruct? val) => _value = val;
void updateValue(Function(ValueStruct) updateFn) {
updateFn(_value ??= ValueStruct());
}
bool hasValue() => _value != null;
static LatLongStruct fromMap(Map<String, dynamic> data) => LatLongStruct(
value: data['value'] is ValueStruct
? data['value']
: ValueStruct.maybeFromMap(data['value']),
);
static LatLongStruct? maybeFromMap(dynamic data) =>
data is Map ? LatLongStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => {
'value': _value?.toMap(),
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
ListingBrokerStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/listing_broker_struct.dart
class ListingBrokerStruct extends FFFirebaseStruct {
ListingBrokerStruct({
bool? isRedfin,
String? name,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _isRedfin = isRedfin,
_name = name,
super(firestoreUtilData);
// "isRedfin" field.
bool? _isRedfin;
bool get isRedfin => _isRedfin ?? false;
set isRedfin(bool? val) => _isRedfin = val;
bool hasIsRedfin() => _isRedfin != null;
// "name" field.
String? _name;
String get name => _name ?? '';
set name(String? val) => _name = val;
bool hasName() => _name != null;
static ListingBrokerStruct fromMap(Map<String, dynamic> data) =>
ListingBrokerStruct(
isRedfin: data['isRedfin'] as bool?,
name: data['name'] as String?,
);
static ListingBrokerStruct? maybeFromMap(dynamic data) => data is Map
? ListingBrokerStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'isRedfin': _isRedfinRepobility · open methodology · https://repobility.com/research/
ListingCoBrokerStruct class · dart · L9-L63 (55 LOC)app/lib/backend/schema/structs/listing_co_broker_struct.dart
class ListingCoBrokerStruct extends FFFirebaseStruct {
ListingCoBrokerStruct({
bool? isRedfin,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _isRedfin = isRedfin,
super(firestoreUtilData);
// "isRedfin" field.
bool? _isRedfin;
bool get isRedfin => _isRedfin ?? false;
set isRedfin(bool? val) => _isRedfin = val;
bool hasIsRedfin() => _isRedfin != null;
static ListingCoBrokerStruct fromMap(Map<String, dynamic> data) =>
ListingCoBrokerStruct(
isRedfin: data['isRedfin'] as bool?,
);
static ListingCoBrokerStruct? maybeFromMap(dynamic data) => data is Map
? ListingCoBrokerStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'isRedfin': _isRedfin,
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
'isRedfin': serializeParam(
_isRedfin,
ParamType.bool,
),
}.withoutNulls;
static LisListingSubTypeStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/listing_sub_type_struct.dart
class ListingSubTypeStruct extends FFFirebaseStruct {
ListingSubTypeStruct({
bool? isFSBA,
bool? isOpenHouse,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _isFSBA = isFSBA,
_isOpenHouse = isOpenHouse,
super(firestoreUtilData);
// "is_FSBA" field.
bool? _isFSBA;
bool get isFSBA => _isFSBA ?? false;
set isFSBA(bool? val) => _isFSBA = val;
bool hasIsFSBA() => _isFSBA != null;
// "is_openHouse" field.
bool? _isOpenHouse;
bool get isOpenHouse => _isOpenHouse ?? false;
set isOpenHouse(bool? val) => _isOpenHouse = val;
bool hasIsOpenHouse() => _isOpenHouse != null;
static ListingSubTypeStruct fromMap(Map<String, dynamic> data) =>
ListingSubTypeStruct(
isFSBA: data['is_FSBA'] as bool?,
isOpenHouse: data['is_openHouse'] as bool?,
);
static ListingSubTypeStruct? maybeFromMap(dynamic data) => data is Map
? ListingSubTypeStruct.fromMap(data.cast<String, dynamic>())
: nullLocationStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/location_struct.dart
class LocationStruct extends FFFirebaseStruct {
LocationStruct({
int? level,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static LocationStruct fromMap(Map<String, dynamic> data) => LocationStruct(
level: castToType<int>(data['level']),
value: data['value'] as String?,
);
static LocationStruct? maybeFromMap(dynamic data) =>
data is Map ? LocationStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => {
'level': _level,
'vLotSizeStruct class · dart · L9-L87 (79 LOC)app/lib/backend/schema/structs/lot_size_struct.dart
class LotSizeStruct extends FFFirebaseStruct {
LotSizeStruct({
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static LotSizeStruct fromMap(Map<String, dynamic> data) => LotSizeStruct(
level: castToType<int>(data['level']),
value: castToType<int>(data['value']),
);
static LotSizeStruct? maybeFromMap(dynamic data) =>
data is Map ? LotSizeStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic>MiniCardPhotosStruct class · dart · L9-L63 (55 LOC)app/lib/backend/schema/structs/mini_card_photos_struct.dart
class MiniCardPhotosStruct extends FFFirebaseStruct {
MiniCardPhotosStruct({
String? url,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _url = url,
super(firestoreUtilData);
// "url" field.
String? _url;
String get url => _url ?? '';
set url(String? val) => _url = val;
bool hasUrl() => _url != null;
static MiniCardPhotosStruct fromMap(Map<String, dynamic> data) =>
MiniCardPhotosStruct(
url: data['url'] as String?,
);
static MiniCardPhotosStruct? maybeFromMap(dynamic data) => data is Map
? MiniCardPhotosStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'url': _url,
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
'url': serializeParam(
_url,
ParamType.String,
),
}.withoutNulls;
static MiniCardPhotosStruct fromSerializableMap(Map<String, dynamic> data) =>
MiniCardMlsIdStruct class · dart · L9-L81 (73 LOC)app/lib/backend/schema/structs/mls_id_struct.dart
class MlsIdStruct extends FFFirebaseStruct {
MlsIdStruct({
String? label,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _label = label,
_value = value,
super(firestoreUtilData);
// "label" field.
String? _label;
String get label => _label ?? '';
set label(String? val) => _label = val;
bool hasLabel() => _label != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static MlsIdStruct fromMap(Map<String, dynamic> data) => MlsIdStruct(
label: data['label'] as String?,
value: data['value'] as String?,
);
static MlsIdStruct? maybeFromMap(dynamic data) =>
data is Map ? MlsIdStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => {
'label': _label,
'value': _value,
}.withoutNulls;
@override
Map<String, dynamic> OriginalTimeOnRedfinStruct class · dart · L9-L113 (105 LOC)app/lib/backend/schema/structs/original_time_on_redfin_struct.dart
class OriginalTimeOnRedfinStruct extends FFFirebaseStruct {
OriginalTimeOnRedfinStruct({
int? date,
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _date = date,
_level = level,
_value = value,
super(firestoreUtilData);
// "date" field.
int? _date;
int get date => _date ?? 0;
set date(int? val) => _date = val;
void incrementDate(int amount) => date = date + amount;
bool hasDate() => _date != null;
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static OriginalTimeOnRedfinStruct fromMap(Map<String, dynamic> data) =>
PhotosRedfinStruct class · dart · L11-L116 (106 LOC)app/lib/backend/schema/structs/photos_redfin_struct.dart
class PhotosRedfinStruct extends FFFirebaseStruct {
PhotosRedfinStruct({
List<String>? items,
int? level,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _items = items,
_level = level,
_value = value,
super(firestoreUtilData);
// "items" field.
List<String>? _items;
List<String> get items => _items ?? const [];
set items(List<String>? val) => _items = val;
void updateItems(Function(List<String>) updateFn) {
updateFn(_items ??= []);
}
bool hasItems() => _items != null;
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static PhotosRedfinStruct fromMap(Map<String, dynamic> datSame scanner, your repo: https://repobility.com — Repobility
PhotosStruct class · dart · L11-L114 (104 LOC)app/lib/backend/schema/structs/photos_struct.dart
class PhotosStruct extends FFFirebaseStruct {
PhotosStruct({
List<String>? items,
int? level,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _items = items,
_level = level,
_value = value,
super(firestoreUtilData);
// "items" field.
List<String>? _items;
List<String> get items => _items ?? const [];
set items(List<String>? val) => _items = val;
void updateItems(Function(List<String>) updateFn) {
updateFn(_items ??= []);
}
bool hasItems() => _items != null;
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static PhotosStruct fromMap(Map<String, dynamic> data) => PhotosStructPostalCodeStruct class · dart · L9-L87 (79 LOC)app/lib/backend/schema/structs/postal_code_struct.dart
class PostalCodeStruct extends FFFirebaseStruct {
PostalCodeStruct({
int? level,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static PostalCodeStruct fromMap(Map<String, dynamic> data) =>
PostalCodeStruct(
level: castToType<int>(data['level']),
value: data['value'] as String?,
);
static PostalCodeStruct? maybeFromMap(dynamic data) => data is Map
? PostalCodeStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'lePricePerSqFtStruct class · dart · L9-L89 (81 LOC)app/lib/backend/schema/structs/price_per_sq_ft_struct.dart
class PricePerSqFtStruct extends FFFirebaseStruct {
PricePerSqFtStruct({
int? level,
double? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
double? _value;
double get value => _value ?? 0.0;
set value(double? val) => _value = val;
void incrementValue(double amount) => value = value + amount;
bool hasValue() => _value != null;
static PricePerSqFtStruct fromMap(Map<String, dynamic> data) =>
PricePerSqFtStruct(
level: castToType<int>(data['level']),
value: castToType<double>(data['value']),
);
static PricePerSqFtStruct? maybeFromMap(dynamic data) => data is Map
? PricePerSqFtStruct.fromMap(data.PriceRedfinStruct class · dart · L9-L89 (81 LOC)app/lib/backend/schema/structs/price_redfin_struct.dart
class PriceRedfinStruct extends FFFirebaseStruct {
PriceRedfinStruct({
int? level,
double? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
double? _value;
double get value => _value ?? 0.0;
set value(double? val) => _value = val;
void incrementValue(double amount) => value = value + amount;
bool hasValue() => _value != null;
static PriceRedfinStruct fromMap(Map<String, dynamic> data) =>
PriceRedfinStruct(
level: castToType<int>(data['level']),
value: castToType<double>(data['value']),
);
static PriceRedfinStruct? maybeFromMap(dynamic data) => data is Map
? PriceRedfinStruct.fromMap(data.cast<SPriceStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/price_struct.dart
class PriceStruct extends FFFirebaseStruct {
PriceStruct({
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static PriceStruct fromMap(Map<String, dynamic> data) => PriceStruct(
level: castToType<int>(data['level']),
value: castToType<int>(data['value']),
);
static PriceStruct? maybeFromMap(dynamic data) =>
data is Map ? PriceStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => PropertyDetailsStruct class · dart · L10-L161 (152 LOC)app/lib/backend/schema/structs/property_details_struct.dart
class PropertyDetailsStruct extends FFFirebaseStruct {
PropertyDetailsStruct({
String? description,
LatlngStruct? latlng,
List<RedfinSoldCompsStruct>? redfinSoldComps,
List<RedfinForSaleCompsStruct>? redfinForSaleComps,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _description = description,
_latlng = latlng,
_redfinSoldComps = redfinSoldComps,
_redfinForSaleComps = redfinForSaleComps,
super(firestoreUtilData);
// "description" field.
String? _description;
String get description => _description ?? '';
set description(String? val) => _description = val;
bool hasDescription() => _description != null;
// "latlng" field.
LatlngStruct? _latlng;
LatlngStruct get latlng => _latlng ?? LatlngStruct();
set latlng(LatlngStruct? val) => _latlng = val;
void updateLatlng(Function(LatlngStruct) updateFn) {
updateFn(_latlng ??= LatlngStruct());
}
bool hasLatlng() => _latlng != null;
//RedfinForSaleCompsStruct class · dart · L10-L72 (63 LOC)app/lib/backend/schema/structs/redfin_for_sale_comps_struct.dart
class RedfinForSaleCompsStruct extends FFFirebaseStruct {
RedfinForSaleCompsStruct({
LatLongStruct? latLong,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _latLong = latLong,
super(firestoreUtilData);
// "latLong" field.
LatLongStruct? _latLong;
LatLongStruct get latLong => _latLong ?? LatLongStruct();
set latLong(LatLongStruct? val) => _latLong = val;
void updateLatLong(Function(LatLongStruct) updateFn) {
updateFn(_latLong ??= LatLongStruct());
}
bool hasLatLong() => _latLong != null;
static RedfinForSaleCompsStruct fromMap(Map<String, dynamic> data) =>
RedfinForSaleCompsStruct(
latLong: data['latLong'] is LatLongStruct
? data['latLong']
: LatLongStruct.maybeFromMap(data['latLong']),
);
static RedfinForSaleCompsStruct? maybeFromMap(dynamic data) => data is Map
? RedfinForSaleCompsStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMRedfinSoldCompsStruct class · dart · L10-L71 (62 LOC)app/lib/backend/schema/structs/redfin_sold_comps_struct.dart
class RedfinSoldCompsStruct extends FFFirebaseStruct {
RedfinSoldCompsStruct({
LatLongStruct? latLong,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _latLong = latLong,
super(firestoreUtilData);
// "latLong" field.
LatLongStruct? _latLong;
LatLongStruct get latLong => _latLong ?? LatLongStruct();
set latLong(LatLongStruct? val) => _latLong = val;
void updateLatLong(Function(LatLongStruct) updateFn) {
updateFn(_latLong ??= LatLongStruct());
}
bool hasLatLong() => _latLong != null;
static RedfinSoldCompsStruct fromMap(Map<String, dynamic> data) =>
RedfinSoldCompsStruct(
latLong: data['latLong'] is LatLongStruct
? data['latLong']
: LatLongStruct.maybeFromMap(data['latLong']),
);
static RedfinSoldCompsStruct? maybeFromMap(dynamic data) => data is Map
? RedfinSoldCompsStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
Repobility · severity-and-effort ranking · https://repobility.com
SashesStruct class · dart · L9-L244 (236 LOC)app/lib/backend/schema/structs/sashes_struct.dart
class SashesStruct extends FFFirebaseStruct {
SashesStruct({
bool? isActiveKeyListing,
bool? isRedfin,
String? lastSaleDate,
String? lastSalePrice,
String? openHouseText,
int? sashType,
String? sashTypeColor,
int? sashTypeId,
String? sashTypeName,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _isActiveKeyListing = isActiveKeyListing,
_isRedfin = isRedfin,
_lastSaleDate = lastSaleDate,
_lastSalePrice = lastSalePrice,
_openHouseText = openHouseText,
_sashType = sashType,
_sashTypeColor = sashTypeColor,
_sashTypeId = sashTypeId,
_sashTypeName = sashTypeName,
super(firestoreUtilData);
// "isActiveKeyListing" field.
bool? _isActiveKeyListing;
bool get isActiveKeyListing => _isActiveKeyListing ?? false;
set isActiveKeyListing(bool? val) => _isActiveKeyListing = val;
bool hasIsActiveKeyListing() => _isActiveKeyListing != null;
// "isRedfinSellingBrokerStruct class · dart · L9-L63 (55 LOC)app/lib/backend/schema/structs/selling_broker_struct.dart
class SellingBrokerStruct extends FFFirebaseStruct {
SellingBrokerStruct({
bool? isRedfin,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _isRedfin = isRedfin,
super(firestoreUtilData);
// "isRedfin" field.
bool? _isRedfin;
bool get isRedfin => _isRedfin ?? false;
set isRedfin(bool? val) => _isRedfin = val;
bool hasIsRedfin() => _isRedfin != null;
static SellingBrokerStruct fromMap(Map<String, dynamic> data) =>
SellingBrokerStruct(
isRedfin: data['isRedfin'] as bool?,
);
static SellingBrokerStruct? maybeFromMap(dynamic data) => data is Map
? SellingBrokerStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'isRedfin': _isRedfin,
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
'isRedfin': serializeParam(
_isRedfin,
ParamType.bool,
),
}.withoutNulls;
static SellingBrokerStSqFtStruct class · dart · L9-L85 (77 LOC)app/lib/backend/schema/structs/sq_ft_struct.dart
class SqFtStruct extends FFFirebaseStruct {
SqFtStruct({
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static SqFtStruct fromMap(Map<String, dynamic> data) => SqFtStruct(
level: castToType<int>(data['level']),
value: castToType<int>(data['value']),
);
static SqFtStruct? maybeFromMap(dynamic data) =>
data is Map ? SqFtStruct.fromMap(data.cast<String, dynamic>()) : null;
Map<String, dynamic> toMap() => {
StreetLineStruct class · dart · L9-L87 (79 LOC)app/lib/backend/schema/structs/street_line_struct.dart
class StreetLineStruct extends FFFirebaseStruct {
StreetLineStruct({
int? level,
String? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
String? _value;
String get value => _value ?? '';
set value(String? val) => _value = val;
bool hasValue() => _value != null;
static StreetLineStruct fromMap(Map<String, dynamic> data) =>
StreetLineStruct(
level: castToType<int>(data['level']),
value: data['value'] as String?,
);
static StreetLineStruct? maybeFromMap(dynamic data) => data is Map
? StreetLineStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'leTimeOnRedfinStruct class · dart · L9-L112 (104 LOC)app/lib/backend/schema/structs/time_on_redfin_struct.dart
class TimeOnRedfinStruct extends FFFirebaseStruct {
TimeOnRedfinStruct({
int? date,
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _date = date,
_level = level,
_value = value,
super(firestoreUtilData);
// "date" field.
int? _date;
int get date => _date ?? 0;
set date(int? val) => _date = val;
void incrementDate(int amount) => date = date + amount;
bool hasDate() => _date != null;
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static TimeOnRedfinStruct fromMap(Map<String, dynamic> data) =>
TimeOnRedfinStruct(
UnitNumberStruct class · dart · L9-L65 (57 LOC)app/lib/backend/schema/structs/unit_number_struct.dart
class UnitNumberStruct extends FFFirebaseStruct {
UnitNumberStruct({
int? level,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
static UnitNumberStruct fromMap(Map<String, dynamic> data) =>
UnitNumberStruct(
level: castToType<int>(data['level']),
);
static UnitNumberStruct? maybeFromMap(dynamic data) => data is Map
? UnitNumberStruct.fromMap(data.cast<String, dynamic>())
: null;
Map<String, dynamic> toMap() => {
'level': _level,
}.withoutNulls;
@override
Map<String, dynamic> toSerializableMap() => {
'level': serializeParam(
_level,
ParamType.int,
),
}.withoutNulls;
static UnitNumberStruct fromSeValueStruct class · dart · L9-L87 (79 LOC)app/lib/backend/schema/structs/value_struct.dart
class ValueStruct extends FFFirebaseStruct {
ValueStruct({
double? latitude,
double? longitude,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _latitude = latitude,
_longitude = longitude,
super(firestoreUtilData);
// "latitude" field.
double? _latitude;
double get latitude => _latitude ?? 0.0;
set latitude(double? val) => _latitude = val;
void incrementLatitude(double amount) => latitude = latitude + amount;
bool hasLatitude() => _latitude != null;
// "longitude" field.
double? _longitude;
double get longitude => _longitude ?? 0.0;
set longitude(double? val) => _longitude = val;
void incrementLongitude(double amount) => longitude = longitude + amount;
bool hasLongitude() => _longitude != null;
static ValueStruct fromMap(Map<String, dynamic> data) => ValueStruct(
latitude: castToType<double>(data['latitude']),
longitude: castToType<double>(data['longitude']),
);
static ValuYearBuiltStruct class · dart · L9-L88 (80 LOC)app/lib/backend/schema/structs/year_built_struct.dart
class YearBuiltStruct extends FFFirebaseStruct {
YearBuiltStruct({
int? level,
int? value,
FirestoreUtilData firestoreUtilData = const FirestoreUtilData(),
}) : _level = level,
_value = value,
super(firestoreUtilData);
// "level" field.
int? _level;
int get level => _level ?? 0;
set level(int? val) => _level = val;
void incrementLevel(int amount) => level = level + amount;
bool hasLevel() => _level != null;
// "value" field.
int? _value;
int get value => _value ?? 0;
set value(int? val) => _value = val;
void incrementValue(int amount) => value = value + amount;
bool hasValue() => _value != null;
static YearBuiltStruct fromMap(Map<String, dynamic> data) => YearBuiltStruct(
level: castToType<int>(data['level']),
value: castToType<int>(data['value']),
);
static YearBuiltStruct? maybeFromMap(dynamic data) => data is Map
? YearBuiltStruct.fromMap(data.cast<String, dynamic>())
: null;
MaSource: Repobility analyzer · https://repobility.com
UserDataRecord class · dart · L10-L369 (360 LOC)app/lib/backend/schema/user_data_record.dart
class UserDataRecord extends FirestoreRecord {
UserDataRecord._(
DocumentReference reference,
Map<String, dynamic> data,
) : super(reference, data) {
_initializeFields();
}
// "email" field.
String? _email;
String get email => _email ?? '';
bool hasEmail() => _email != null;
// "display_name" field.
String? _displayName;
String get displayName => _displayName ?? '';
bool hasDisplayName() => _displayName != null;
// "photo_url" field.
String? _photoUrl;
String get photoUrl => _photoUrl ?? '';
bool hasPhotoUrl() => _photoUrl != null;
// "uid" field.
String? _uid;
String get uid => _uid ?? '';
bool hasUid() => _uid != null;
// "created_time" field.
DateTime? _createdTime;
DateTime? get createdTime => _createdTime;
bool hasCreatedTime() => _createdTime != null;
// "phone_number" field.
String? _phoneNumber;
String get phoneNumber => _phoneNumber ?? '';
bool hasPhoneNumber() => _phoneNumber != null;
// "gImptRate" fiUserDataRecordDocumentEquality class · dart · L485-L602 (118 LOC)app/lib/backend/schema/user_data_record.dart
class UserDataRecordDocumentEquality implements Equality<UserDataRecord> {
const UserDataRecordDocumentEquality();
@override
bool equals(UserDataRecord? e1, UserDataRecord? e2) {
return e1?.email == e2?.email &&
e1?.displayName == e2?.displayName &&
e1?.photoUrl == e2?.photoUrl &&
e1?.uid == e2?.uid &&
e1?.createdTime == e2?.createdTime &&
e1?.phoneNumber == e2?.phoneNumber &&
e1?.gImptRate == e2?.gImptRate &&
e1?.aduImpRate == e2?.aduImpRate &&
e1?.newBuildRate == e2?.newBuildRate &&
e1?.financingRate == e2?.financingRate &&
e1?.mtgRate == e2?.mtgRate &&
e1?.fnfImpRate == e2?.fnfImpRate &&
e1?.dwnPmtRate == e2?.dwnPmtRate &&
e1?.fnfImpFactor == e2?.fnfImpFactor &&
e1?.taxInsRate == e2?.taxInsRate &&
e1?.salRate == e2?.salRate &&
e1?.twoBedAvgValue == e2?.twoBedAvgValue &&
e1?.newFutValSalperSFRate == e2?.newFutValSalperSFRate &&
e1?FirestoreRecord class · dart · L8-L12 (5 LOC)app/lib/backend/schema/util/firestore_util.dart
abstract class FirestoreRecord {
FirestoreRecord(this.reference, this.snapshotData);
Map<String, dynamic> snapshotData;
DocumentReference reference;
}FFFirebaseStruct class · dart · L14-L19 (6 LOC)app/lib/backend/schema/util/firestore_util.dart
abstract class FFFirebaseStruct extends BaseStruct {
FFFirebaseStruct(this.firestoreUtilData);
/// Utility class for Firestore updates
FirestoreUtilData firestoreUtilData = FirestoreUtilData();
}FirestoreUtilData class · dart · L21-L33 (13 LOC)app/lib/backend/schema/util/firestore_util.dart
class FirestoreUtilData {
const FirestoreUtilData({
this.fieldValues = const {},
this.clearUnsetFields = true,
this.create = false,
this.delete = false,
});
final Map<String, dynamic> fieldValues;
final bool clearUnsetFields;
final bool create;
final bool delete;
static String get name => 'firestoreUtilData';
}BaseStruct class · dart · L16-L19 (4 LOC)app/lib/backend/schema/util/schema_util.dart
abstract class BaseStruct {
Map<String, dynamic> toSerializableMap();
String serialize() => json.encode(toSerializableMap());
}AuthDialogueModel class · dart · L5-L57 (53 LOC)app/lib/components/auth_dialogue_model.dart
class AuthDialogueModel extends FlutterFlowModel<AuthDialogueWidget> {
/// State fields for stateful widgets in this component.
// State field(s) for TabBar widget.
TabController? tabBarController;
int get tabBarCurrentIndex =>
tabBarController != null ? tabBarController!.index : 0;
int get tabBarPreviousIndex =>
tabBarController != null ? tabBarController!.previousIndex : 0;
// State field(s) for emailAddress_Create widget.
FocusNode? emailAddressCreateFocusNode;
TextEditingController? emailAddressCreateTextController;
String? Function(BuildContext, String?)?
emailAddressCreateTextControllerValidator;
// State field(s) for password_Create widget.
FocusNode? passwordCreateFocusNode;
TextEditingController? passwordCreateTextController;
late bool passwordCreateVisibility;
String? Function(BuildContext, String?)?
passwordCreateTextControllerValidator;
// State field(s) for emailAddress widget.
FocusNode? emailAddressFocusNode;
TAuthDialogueWidget class · dart · L16-L21 (6 LOC)app/lib/components/auth_dialogue_widget.dart
class AuthDialogueWidget extends StatefulWidget {
const AuthDialogueWidget({super.key});
@override
State<AuthDialogueWidget> createState() => _AuthDialogueWidgetState();
}Repobility · open methodology · https://repobility.com/research/
BudgetComponentSearchEditableWidget class · dart · L12-L65 (54 LOC)app/lib/components/budget_component_search_editable_widget.dart
class BudgetComponentSearchEditableWidget extends StatefulWidget {
const BudgetComponentSearchEditableWidget({
super.key,
this.price,
this.loanPayments,
this.propertyTaxIns,
this.permitsFees,
this.impValue,
required this.futureValue,
this.sellingCosts,
this.netRtn,
this.totalCosts,
this.netReturn,
this.loanFees,
this.livingArea,
this.futureArea,
this.grossReturn,
this.estimatedValue,
this.loanAmount,
required this.savedDocRef,
this.estimatedRentalIncome,
this.rentEstimate,
required this.method,
this.totalReturn,
int? netRentalIncome5yrs,
}) : this.netRentalIncome5yrs = netRentalIncome5yrs ?? 0;
final int? price;
final int? loanPayments;
final int? propertyTaxIns;
final int? permitsFees;
final int? impValue;
final int? futureValue;
final int? sellingCosts;
final int? netRtn;
final int? totalCosts;
final int? netReturn;
final int? loanFees;
final int? livingArea;
finBuyTokensModel class · dart · L6-L19 (14 LOC)app/lib/components/buy_tokens_model.dart
class BuyTokensModel extends FlutterFlowModel<BuyTokensWidget> {
/// State fields for stateful widgets in this component.
// Stores action output result for [Backend Call - API (Create Customer)] action in Button widget.
ApiCallResponse? createCustomer;
// Stores action output result for [Backend Call - API (Create Checkout Session)] action in Button widget.
ApiCallResponse? createCheckout;
@override
void initState(BuildContext context) {}
@override
void dispose() {}
}BuyTokensWidget class · dart · L14-L19 (6 LOC)app/lib/components/buy_tokens_widget.dart
class BuyTokensWidget extends StatefulWidget {
const BuyTokensWidget({super.key});
@override
State<BuyTokensWidget> createState() => _BuyTokensWidgetState();
}CompCardRedfinModel class · dart · L5-L11 (7 LOC)app/lib/components/comp_card_redfin_model.dart
class CompCardRedfinModel extends FlutterFlowModel<CompCardRedfinWidget> {
@override
void initState(BuildContext context) {}
@override
void dispose() {}
}CompCardRedfinWidget class · dart · L7-L33 (27 LOC)app/lib/components/comp_card_redfin_widget.dart
class CompCardRedfinWidget extends StatefulWidget {
const CompCardRedfinWidget({
super.key,
String? comp1Img,
double? comp1Value,
double? comp1LvgArea,
double? comp1Beds,
double? comp1Baths,
double? comp1LotArea,
}) : this.comp1Img = comp1Img ??
'https://community.softr.io/uploads/db9110/original/2X/7/74e6e7e382d0ff5d7773ca9a87e6f6f8817a68a6.jpeg',
this.comp1Value = comp1Value ?? 0.0,
this.comp1LvgArea = comp1LvgArea ?? 0.0,
this.comp1Beds = comp1Beds ?? 0.0,
this.comp1Baths = comp1Baths ?? 0.0,
this.comp1LotArea = comp1LotArea ?? 0.0;
final String comp1Img;
final double comp1Value;
final double comp1LvgArea;
final double comp1Beds;
final double comp1Baths;
final double comp1LotArea;
@override
State<CompCardRedfinWidget> createState() => _CompCardRedfinWidgetState();
}_CompCardRedfinWidgetState class · dart · L35-L301 (267 LOC)app/lib/components/comp_card_redfin_widget.dart
class _CompCardRedfinWidgetState extends State<CompCardRedfinWidget> {
late CompCardRedfinModel _model;
@override
void setState(VoidCallback callback) {
super.setState(callback);
_model.onUpdate();
}
@override
void initState() {
super.initState();
_model = createModel(context, () => CompCardRedfinModel());
WidgetsBinding.instance.addPostFrameCallback((_) => safeSetState(() {}));
}
@override
void dispose() {
_model.maybeDispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container(
width: 150.0,
height: 221.7,
decoration: BoxDecoration(),
child: Card(
clipBehavior: Clip.antiAliasWithSaveLayer,
color: FlutterFlowTheme.of(context).secondaryBackground,
elevation: 0.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
child: Column(
mainAxisSize: MainAxisSize.min,
childrenCompCardZillowModel class · dart · L5-L11 (7 LOC)app/lib/components/comp_card_zillow_model.dart
class CompCardZillowModel extends FlutterFlowModel<CompCardZillowWidget> {
@override
void initState(BuildContext context) {}
@override
void dispose() {}
}CompCardZillowWidget class · dart · L8-L30 (23 LOC)app/lib/components/comp_card_zillow_widget.dart
class CompCardZillowWidget extends StatefulWidget {
const CompCardZillowWidget({
super.key,
this.comp1Img,
this.comp1Value,
required this.comp1LvgArea,
this.comp1Beds,
this.comp1Baths,
this.comp1LotArea,
required this.onCompLoad,
});
final String? comp1Img;
final int? comp1Value;
final int? comp1LvgArea;
final int? comp1Beds;
final int? comp1Baths;
final int? comp1LotArea;
final Future Function(CompsStruct comp)? onCompLoad;
@override
State<CompCardZillowWidget> createState() => _CompCardZillowWidgetState();
}Same scanner, your repo: https://repobility.com — Repobility
_CompCardZillowWidgetState class · dart · L32-L185 (154 LOC)app/lib/components/comp_card_zillow_widget.dart
class _CompCardZillowWidgetState extends State<CompCardZillowWidget> {
late CompCardZillowModel _model;
@override
void setState(VoidCallback callback) {
super.setState(callback);
_model.onUpdate();
}
@override
void initState() {
super.initState();
_model = createModel(context, () => CompCardZillowModel());
WidgetsBinding.instance.addPostFrameCallback((_) => safeSetState(() {}));
}
@override
void dispose() {
_model.maybeDispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container(
width: 150.0,
height: 221.7,
decoration: BoxDecoration(),
child: Card(
clipBehavior: Clip.antiAliasWithSaveLayer,
color: FlutterFlowTheme.of(context).secondaryBackground,
elevation: 0.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
child: Column(
mainAxisSize: MainAxisSize.min,
childrenDescriptionIIModel class · dart · L5-L15 (11 LOC)app/lib/components/description_i_i_model.dart
class DescriptionIIModel extends FlutterFlowModel<DescriptionIIWidget> {
/// Local state fields for this component.
bool isExpanded = false;
@override
void initState(BuildContext context) {}
@override
void dispose() {}
}DescriptionIIWidget class · dart · L8-L18 (11 LOC)app/lib/components/description_i_i_widget.dart
class DescriptionIIWidget extends StatefulWidget {
const DescriptionIIWidget({
super.key,
this.description,
});
final String? description;
@override
State<DescriptionIIWidget> createState() => _DescriptionIIWidgetState();
}