Login...
This commit is contained in:
parent
1fd8543085
commit
d977cfd0fc
|
|
@ -56,7 +56,7 @@ abstract class ClientEntity extends Object
|
|||
implements Built<ClientEntity, ClientEntityBuilder> {
|
||||
factory ClientEntity({String id}) {
|
||||
return _$ClientEntity._(
|
||||
id: id ?? '${--ClientEntity.counter}',
|
||||
id: id ?? BaseEntity.nextId,
|
||||
name: '',
|
||||
displayName: '',
|
||||
balance: 0.0,
|
||||
|
|
@ -105,8 +105,6 @@ abstract class ClientEntity extends Object
|
|||
|
||||
ClientEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
ClientEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false);
|
||||
|
|
@ -477,8 +475,6 @@ abstract class ContactEntity extends Object
|
|||
|
||||
ContactEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
@BuiltValueField(wireName: 'first_name')
|
||||
String get firstName;
|
||||
|
||||
|
|
|
|||
|
|
@ -369,8 +369,6 @@ abstract class PaymentTermEntity extends Object
|
|||
|
||||
PaymentTermEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
static Serializer<PaymentTermEntity> get serializer =>
|
||||
_$paymentTermEntitySerializer;
|
||||
|
||||
|
|
@ -407,8 +405,6 @@ abstract class TaxRateEntity extends Object
|
|||
|
||||
TaxRateEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
static Serializer<TaxRateEntity> get serializer => _$taxRateEntitySerializer;
|
||||
|
||||
String get name;
|
||||
|
|
|
|||
|
|
@ -68,8 +68,6 @@ abstract class CreditEntity extends Object
|
|||
|
||||
CreditEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
CreditEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false);
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ abstract class DocumentEntity extends Object
|
|||
|
||||
DocumentEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
String get name;
|
||||
|
||||
String get type;
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ abstract class ExpenseEntity extends Object
|
|||
|
||||
ExpenseEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
ExpenseEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false
|
||||
|
|
@ -390,8 +388,6 @@ abstract class ExpenseCategoryEntity extends Object
|
|||
|
||||
ExpenseCategoryEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
@override
|
||||
bool matchesFilter(String filter) {
|
||||
if (filter == null || filter.isEmpty) {
|
||||
|
|
|
|||
|
|
@ -145,8 +145,6 @@ abstract class InvoiceEntity extends Object
|
|||
|
||||
InvoiceEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
InvoiceEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false
|
||||
|
|
@ -551,8 +549,6 @@ abstract class InvoiceItemEntity extends Object
|
|||
|
||||
InvoiceItemEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
@override
|
||||
EntityType get entityType {
|
||||
return EntityType.invoiceItem;
|
||||
|
|
@ -676,8 +672,6 @@ abstract class InvitationEntity extends Object
|
|||
|
||||
InvitationEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
String get key;
|
||||
|
||||
String get link;
|
||||
|
|
|
|||
|
|
@ -80,8 +80,6 @@ abstract class PaymentEntity extends Object
|
|||
|
||||
PaymentEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
@override
|
||||
EntityType get entityType {
|
||||
return EntityType.payment;
|
||||
|
|
|
|||
|
|
@ -67,8 +67,6 @@ abstract class ProductEntity extends Object
|
|||
|
||||
ProductEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
ProductEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false);
|
||||
|
|
|
|||
|
|
@ -70,8 +70,6 @@ abstract class ProjectEntity extends Object
|
|||
|
||||
ProjectEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
ProjectEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false);
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ abstract class TaskEntity extends Object
|
|||
|
||||
TaskEntity._();
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
TaskEntity get clone => rebuild((b) => b
|
||||
..id = BaseEntity.nextId
|
||||
..isDeleted = false
|
||||
|
|
|
|||
|
|
@ -298,8 +298,6 @@ abstract class VendorContactEntity extends Object
|
|||
return EntityType.vendorContact;
|
||||
}
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
@BuiltValueField(wireName: 'first_name')
|
||||
String get firstName;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ import 'package:url_launcher/url_launcher.dart';
|
|||
class LinkTextSpan extends TextSpan {
|
||||
LinkTextSpan({TextStyle style, String url, String text})
|
||||
: super(
|
||||
style: style,
|
||||
text: text ?? url,
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
launch(url, forceSafariVC: false);
|
||||
});
|
||||
style: style,
|
||||
text: text ?? url,
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
launch(url, forceSafariVC: false);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14598,8 +14598,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
String get thankYouForYourPurchase =>
|
||||
_localizedValues[localeCode]['thank_you_for_your_purchase'];
|
||||
|
||||
String get all =>
|
||||
_localizedValues[localeCode]['all'];
|
||||
String get all => _localizedValues[localeCode]['all'];
|
||||
|
||||
String lookup(String key) {
|
||||
final lookupKey = toSnakeCase(key);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ abstract class StubEntity extends Object with BaseEntity implements Built<StubEn
|
|||
|
||||
// STARTER: properties - do not remove comment
|
||||
|
||||
static int counter = 0;
|
||||
factory StubEntity() {
|
||||
return _$StubEntity._(
|
||||
id: 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue