MenstrualCycleWidget class

Properties

hashCode int
The hash code for this object.
no setterinherited
lastPeriodDate String
getter/setter pair
lastPeriodLength int
getter/setter pair
pastAllPeriodDays List<String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateLastPeriodDate() Future<List<String>>
get last period and all past period date from database based on configuration
getCustomerId() String
getCycleLength() int
getIvKey() String
getLastPeriodDate() Future<DateTime>
get last period date. Default is 1971-01-01
getLastPeriodDateRange() Future<List<DateTime>>
get last period date. Default is []
getLastPeriodDay() String
getLastPeriodLength() int
getPeriodDuration() int
getSecretKey() String
initialize({required String secretKey, required String ivKey}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printMyName() → void
saveCustomSymptomsLogs({required Map<String, dynamic>? userSymptomsData, String symptomsLogDate = "", required Function? onSuccess, required Function? onError}) → dynamic
Sae your own logs into DB
setCurrentUserData(String customerId, int cycleLength, int periodDuration) → dynamic
toString() String
A string representation of this object.
inherited
updateConfiguration({required int? cycleLength, required int? periodDuration, String? userId = "0", DateTime? lastPeriodDate}) → void
Update configuration of MenstrualCycleWidget

Operators

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

Static Properties

instance MenstrualCycleWidget?
getter/setter pair

Static Methods

init({required String? secretKey, required String? ivKey}) MenstrualCycleWidget
Initialize MenstrualCycleWidget