MenstrualCycleWidget class
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