Helper class Null safety Utils

헬퍼 클래스입니다. 싱글톤으로 실행됩니다. 코드 구현에 있어 여러 곳에서 사용하고자 하는 메소드들을 정의합니다.

Constructors

Helper()
factory

Properties

chatNavigatorKey GlobalKey<NavigatorState>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
instanceId int
싱글톤 인스턴스 아이디
read / write
rootNavigatorKey GlobalKey<NavigatorState>
최상위 내비게이터 키 입니다. AppEntry에 있는 내비게이터에서 사용됩니다.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
settingsNavigatorKey GlobalKey<NavigatorState>
세팅 화면의 서브스크린에 접근하기 위한 내비게이터 키 입니다. SettingsScreen 을 참고하세요.
final

Methods

convertCowDataToGraphData({required List<CowData>? cowData, DateTime? targetDateTime, int continuedDays = 0, required GraphViewType graphViewType, ActionType? actionType}) List<BarDataDay>
소데이터를 그래프 데이터로 변환합니다.
convertDateTimeToMidnight(DateTime _) DateTime
DateTime을 해당 날짜의 자정으로 변환합니다. 날짜 계산시 사용
getMaxValueFromBarDataDay({required List<BarDataDay> barDatasDay}) double
그래프 데이터에서 최대값을 가져옵니다. 그래프 표현시 최대 범위를 표현하기 위해 사용합니다.
getMaxValueFromCowData({required List<CowData>? cowDatas, required ActionType action}) double
소 데이터에서 최대값을 가져옵니다. 개체현황 그래프 표현시 최대 범위를 표현하기 위해 사용합니다.
isCowDataHighlighted(CowDataValue cowDataValue) bool
CowData가 highlighted 되었는지 확인합니다.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

convertSecondsToHMFormat(int seconds) String
초를 1h 2' 포맷으로 변환합니다.
convertWeekdayToKor(int weekDay) → dynamic
요일 index를 한글로 변환합니다.
getFilenameFromPath(String path) → dynamic
경로 문자열에서 파일이름을 가져옵니다.